-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Handle the onChange event on ngOptions is insufficient #10233
Comments
@paulsouche just to clarify - are you referring to the fact that the |
Apparently it was brought up before:
But all those issues are closed now and it is not clear if we want to "correct" browser's behaviour here. @paulsouche are you seeing this with FFox only (version?) or other browsers as well? |
Indeed on firefox the onChange event is triggered when the select loses focus and that sufficient for me. But on Chrome you can reproduce my bug with this fiddle. Story : I'm ok with the other issues : that's not an angular bug but a browser one. But I'm just asking could we fix it ? and the best way ? By the way IE seems to manage it right. Thanks |
Basically, this is a (tricky to reproduce) browser bug (related to removing an Similar issues have been reported: #4836, #7042, #7544, #9134 (probably more) And a bug has been filed: https://code.google.com/p/chromium/issues/detail?id=415505 |
Ok indeed manage the empty option in the model fix the bug. That fits to me. Thank you. |
According to this script the ng-options directive handle the onChange event to set the ngModel up to date.
That's insufficient in case of keyBoard navigation on select because this event is not trigerred (on Firefox for example)
A solution is to add the keyup event into the loop...
Thanks
The text was updated successfully, but these errors were encountered: