Comments (9)
Funny you posted this - I am actually working on one now! I'll put a link to it on the Readme.md when it is done. The documentation needs a complete overhaul as it is horrible and it is missing lots of stuff like custom form controls, the various form options you can have (forcing validation, disabling validation, validating hidden elements etc). If you fancy help that would be awesome!
I regards to the submitting - It will unless you have a required attribute on the element (this is an angular thing not this library) however, it might be a bug but haven't noticed it and I'm using the latest version in two projects.
from angular-auto-validate.
I have required on all my fields, but using the latest version, it doesn't pop up the error messages on all the fields like in the demo. I manually changed the source so the default for forceValidation was true, and it still didn't.
Edit: As simple as I can get
<form novalidate="novalidate" ng-submit="test()">
<div class="form-group">
<label for="title">Title</label>
<input type="text" id="title" class="form-control" required ng-model="title"/>
</div>
<button>submit</button>
</form>
$scope.test = function() {
alert("test");
};
from angular-auto-validate.
I'm having the same problem as @phazei
from angular-auto-validate.
Nice I'm doing a plunkr now so I'll confirm the issue and submit a fix -
sorry if it's not working guys I'll add a couple of unit tests to cover
this.
On Wed, 18 Mar 2015 at 08:41 Martin Irigaray [email protected]
wrote:
I'm having the same problem as @phazei https://github.com/phazei
—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from angular-auto-validate.
I've tracked it down to a regression between 1.6.22 and 1.8.3. Working on 1.6.22
from angular-auto-validate.
yes I've just found the issue - v1.18.x had a big change adding form options to allow for lots of different things (disabling validation, validating hidden elements, forcing validation etc) so the force validation (when clicking the submit button) wasn't sending through the right value. I've fixed it now and just writing a couple more unit tests around it then I'll release. Sorry all!
from angular-auto-validate.
This is now fixed in v1.18.5. I've added a test as well to make sure this doesn't happen again.
Here is a really simple plunker which works with the latest version. I'm going expand this to a fully working demo later today.
http://plnkr.co/edit/3ff7LWduHCedVJZEorv3?p=preview
from angular-auto-validate.
excellent! thank you! it works now.
from angular-auto-validate.
Sorry - created a new issue for the demo plunker here #54
from angular-auto-validate.
Related Issues (20)
- package.json has incorrect main attribute HOT 3
- angular-auto-validate with bower
- Is there any way to display more than one error message?
- Validation not working with material md-select
- After submit data remoove styling HOT 1
- Update npm registry HOT 3
- conflict with sb-admin admin template HOT 2
- Failed when using an angular expression in ng-pattern
- min and max error description wrong i18n es-co
- Prevent validating ng-hide elements
- Value {0} replace dont work when use myCustomErrorMessageResolver HOT 1
- Passing a parameter from a Custom Validator directive to errorMessages doesn't work unless you make errorMessages dash-case. HOT 1
- cannot validate ng-form or sections in a form
- Show server side errors using this package
- Validate when state redirection
- custom error message (help)
- auto validate for other plugins
- autovalidate intefering with ngRequired directive
- request/potential bug: allow validation when on $touched instead of on $dirty HOT 1
- Can we use this for Angular5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-auto-validate.