You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Click on first dropdown twice to activate. Press down arrow. Ng-model updates. Press down again. Ng-model does not update.
(Testing in chrome)
The text was updated successfully, but these errors were encountered:
esiege
changed the title
Second ng-change doesn't fire on selects when using arrow keys
Scope doesnt update on selects when using arrow keys
Jan 27, 2015
I have simplified the example and updated AngularJS from 1.1.4 to 1.3.11, the issue is still very easy to see: http://jsfiddle.net/KN9xx/301/
It's got something to do with the initial arrowDown key, while arrowUp key works perfectly (not in FireFox).
The issue appears to be browser-specific:
Doesn't happen in IE11;
Happens in Chrome as described above;
In FireFox it is much worse - arrow keys result in no model update at all!
In all, to see the issue in Chrome you do not need to double-click, just pick any item on the list using mouse, except for the last one, and then hit arrowDown - model won't update.
Better still, use FireFox - arrow keys there do not update the model, not up, not down :)
P.S. I am astounded that nobody picked this up ever since version 1.1
(Simple dropdown jsfiddle)
http://jsfiddle.net/derkoe/KN9xx/presentation/
Click on first dropdown twice to activate. Press down arrow. Ng-model updates. Press down again. Ng-model does not update.
(Testing in chrome)
The text was updated successfully, but these errors were encountered: