Search and Top Navigation
#5125 closed bug (notabug)
Opened February 03, 2010 02:57PM UTC
Closed February 04, 2010 02:27AM UTC
Last modified October 11, 2012 09:15PM UTC
On IE, pressing enter automatically triggers a click event on an unfocused button
Description
When no element is focused, pressing enter will result in:
- [On IE8] Clicking the very first button of the page (the one labelled "Simple button, only text")
- [On IE6/7] Clicking the submit button (the one labelled "Submit button")
There is no such bug on FF 3.6 and Chrome 3.0.
The bug can be experimented on the button component visual tests page : http://jquery-ui.googlecode.com/svn/branches/dev/tests/visual/button/default.html.
This is not a bug, this is how IE behaves. You'll get the exact same behavior even without any of the jQuery files loaded.