Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10557 closed bug (cantfix)

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

Reported by: charles@… 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.

Change History (1)

comment:1 Changed 8 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.