Skip to main content

Bug Tracker

Side navigation

#10557 closed bug (cantfix)

Opened October 21, 2011 06:16PM UTC

Closed October 22, 2011 12:16AM UTC

Last modified March 10, 2012 01:59AM UTC

.focus() on text input not working as expected in Firefox

Reported by: charles@ibike365.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

When setting focus on a text input in Firefox, the input gets focus, but does not have cursor and does not respond to blur event. You will see in my fiddle that it does set focus when page loads, but not when run (which is how it is used in my case)

http://jsfiddle.net/ibike365/zMxtr/3/

Tested and works in Chrome and IE

Thanks.

Attachments (0)
Change History (1)

Changed October 22, 2011 12:16AM UTC by dmethvin comment:1

resolution: → cantfix
status: newclosed

Test case without jQuery loaded, same behavior after clicking Run: http://jsfiddle.net/zMxtr/6/

I thought perhaps it was timing related but even using setTimeout after a long delay or explicitly blurring has no effect:

http://jsfiddle.net/zMxtr/8/

http://jsfiddle.net/zMxtr/9/

This seems like a Firefox issue. They are on a fast-track development schedule now, so we rarely try to fix these issues through workarounds within jQuery. I would report the problem to them on Bugzilla.