Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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

Closed
jsobell opened this issue May 9, 2013 · 4 comments
Closed

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

jsobell opened this issue May 9, 2013 · 4 comments

Comments

@jsobell
Copy link

jsobell commented May 9, 2013

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.

@btford btford closed this as completed Aug 24, 2013
@btford
Copy link
Contributor

btford commented Aug 24, 2013

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!

@jsobell
Copy link
Author

jsobell commented Aug 26, 2013

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

@btford
Copy link
Contributor

btford commented Aug 28, 2013

What browser?

@MisterK
Copy link

MisterK commented Sep 16, 2013

Hi, this issue is in Firefox only. This was described here: #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?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants