-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the very first character is written on an input, it is not binded with $scope, and then $invalid flag takes a wrong value #60
Comments
I just ran a test for this in my debugger and I don't see the issue. Everything is firing as expected and the binding is accurate. In the validator, you can inspect the form model controller, it is passed in as the 6th parameter, it corresponds to
|
As far as the UI bound value |
Thank you very much. I'll wait for a resolution. I cannot try to solve the bug since the source code is minified. PD. By the way, something similar happens when CTRL-C/CTRL-V is done on the input. |
I just realize that this bug appears when using AngularJS>=1.3.0. With AngularJS 1.2.x the custom validation library works fine. |
I am looking into it currently. |
@nelsonomuto Have you checked ? |
Yep faced same issue today. Model is not updating on first time input and unfortunately form gets invalidated. This causes major issue in form validation. Hope it gets fixed ASAP. |
Hello!
First of all, I would like to thank you for this great and useful library.
I have detected an issue when an angular-ui-form-validation directive is assigned to a form input field:
As you could see below, the result is correct, since $scope.name='' and $invalid=false:
Here comes the issue: When the very first character is written on the input field, it is expected that $scope.name='a' and $invalid=false, however, the input is not binded with its corresponding $scope variable, and then $invalid is set to true:
Then, I insert the second character. After this, the variable is binded and the validation process works fine
If I delete the just inserted character, then the directive is still working:
After step 3, if I delete the last character and the input lost the focus, the validation directive works fine
Then, if I put another random character, the validation works
Any ideas/solutions? Thank you very much
The text was updated successfully, but these errors were encountered: