angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Bug selecting items in select tags with ng-options via keyboard

Open jsobell opened this issue 13 years ago • 4 comments

I've posted an example here: http://jsfiddle.net/QkSnQ/4/

Using the mouse works fine, but keyboard use when changing values appears to be broken.

jsobell avatar May 09 '13 14:05 jsobell

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.

Thanks!

btford avatar Aug 24 '13 00:08 btford

This problem still exists with 1.2.0-rc.1: http://jsfiddle.net/QkSnQ/11/

jsobell avatar Aug 26 '13 12:08 jsobell

What browser?

btford avatar Aug 28 '13 19:08 btford

Hi, this issue is in Firefox only. This was described here: https://github.com/angular/angular.js/issues/294 "FF will fire onchange event only if you use mouse. If you use the keyboard the onchange event is fired only after the select element loses its focus." The onchange event is also fired when you press the "Enter" key after selecting the right option with the arrows. This is still happening with Angular 1.0.8 & 1.1.1.

From what I've read, it seems to be the actual desired behaviour, from the The W3C spec. A possible fix, to make the behaviour consistent on all browsers, would probably be to also listen for keypress events for select tags in Firefox only, to check if the selected option hasn't changed. What do you think?

MisterK avatar Sep 16 '13 23:09 MisterK