Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAfter second trigger of the validation the model binding value is undefined #20
Comments
Having the same issue with an array ... Somehow the validation sets it to undefined on second change and then things get messed up:-( |
would any of you submit a PR ? |
Well seems like this is a feature... and not related to ui-validate. Don't know if it makes sense to set this option by ui-validate automatically? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using a directive for an input text control where i have the following two methods inside controller function.
The first time i paste some text in the text box both methods are triggered. When i type in or delete a character from the text box first is called the validation method and then the ng-change associated method (tiggeredOnTextInputChange) but the value passed (val) is undefined (ng-model="theBindingModelValue"). How can i deal with this?
Html of the directive (testInput.html)
The complete directive:
I call it this way: