-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Function in ng-change is fired before input is touched. #9867
Comments
Hi! It's halloween, terrible time to be filing bugs! (kidding, kidding). Could you post a quick reproduction of this on https://plunkr.co? That would be super helpful. |
Hello Caitlin, Here is plunker http://plnkr.co/n1Iq5uhYog23022Cfvxc |
Might be related to #9063 |
It seems to be related to the input value not being a string, actually --- I can't reproduce if the value is a string to begin with. So what we're doing is, we're converting to a string to validate maxlength, and the model value is changing too because of this. I'll see if I can make a patch for it |
Is this perhaps related to my issue #9918 |
This is a terrible issue for us because every number is changed in string before we have set the parser. |
This is going to be fixed in 1.3.4, see e3764e3 |
Today I wanted to "upgrade" to 1.3.1.
Every piece of my app is working but ng-change not anymore.
My function "showPriority()" is called when template is rendering as many times as is items in an object speakers (deferred ajax result from laravel api).
It was working fine (function is called only when I will change the value of input) in 1.3.0-beta.19, but not in 1.3.0-rc.0+ (for 4 items is called 4x, when i will change the value +1x...).
Is there any difference in ngChange?
The text was updated successfully, but these errors were encountered: