Skip to main content

Search and Top Navigation

#9401 closed bug (notabug)

Opened June 25, 2013 10:24PM UTC

Closed June 26, 2013 03:04PM UTC

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/

Attachments (0)
Change History (3)

Changed June 25, 2013 11:27PM UTC by tj.vantoll comment:1

owner: → 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?

Changed June 26, 2013 01:59PM UTC by sga comment:2

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.

Changed June 26, 2013 03:04PM UTC by scottgonzalez comment:3

resolution: → notabug
status: newclosed