Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12859 closed bug (worksforme)

FocusIn event not working for input type checkbox in chrome browser

Reported by: rajendrav5 <rajendrakumar556@…> Owned by:
Priority: undecided Milestone: None
Component: event Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

Focusin working fine for all input elements in form except input type checkbox in chrome its working successfully in firefox but not in chrome

Change History (5)

comment:1 Changed 7 years ago by rajendrav5 <rajendrakumar556@…>

Event change works fine for input type checkbox , but in our case its not a solution focusin doesnt seems to work in chrome......

comment:2 Changed 7 years ago by rajendrav5 <rajendrakumar556@…>

comment:3 Changed 7 years ago by timmywil

Component: unfiledevent
Resolution: worksforme
Status: newclosed

Keep in mind clicking a checkbox does not necessarily focus it.

http://jsfiddle.net/timmywil/sGCxa/4/

comment:4 in reply to:  3 Changed 7 years ago by rajendrav5 <rajendrakumar556@…>

Replying to timmywil:

Keep in mind clicking a checkbox does not necessarily focus it.

http://jsfiddle.net/timmywil/sGCxa/4/

So how to trigger focusin event on clicking a checkbox .......the example provided i think i could not relate to my scenario in the example i provided, when a checkbox is clicked its triggering focusin event perfectly in firefox but not in chrome............

comment:5 Changed 7 years ago by timmywil

@rajendrav5: Native focus can be programmatically triggered with .focus(), but without knowing your use case, it's hard to know what behavior you're trying to accomplish. I suggest asking for help on the forums or in the #jquery irc channel. We cannot cover up this kind of browser inconsistency (although truth be told, I don't see the focusin event happening on click in Firefox either).

Note: See TracTickets for help on using tickets.