Opened 7 years ago

Closed 7 years ago

#9401 closed bug (notabug)

Autofocus is not working in Firefox

Reported by: sga Owned by: sga
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

The documentation states:

Upon opening a dialog, focus is automatically moved to the first item that matches the following:
The first element within the dialog with the autofocus attribute
...

That doesn't work in Firefox (tested 21.0 or 22.0) or IE 10. Works in Chrome. example: http://jsfiddle.net/6jJAp/

Change History (3)

comment:1 Changed 7 years ago by tj.vantoll

Owner: set to sga
Status: newpending

Hi sga,

Thanks for taking the time to contribute to the jQuery UI project.

I see the behavior you're describing, but it works fine on http://jsfiddle.net/6jJAp/show in both IE10 and Firefox. I also don't see the issue using JSBin: http://jsbin.com/aterub/5/edit.

Were you seeing this behavior outside of jsFiddle?

comment:2 Changed 7 years ago by sga

Status: pendingnew

I'm terribly sorry, I did a poor job debugging my case and the problem was elsewhere. The ticket is bogus.

My jsfiddle example doesn't seem to work, because it is in an iframe and I guess Firefox handles iframe focus differently. That may be a problem in itself, but it isn't the bug I was looking for.

comment:3 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.