Bug Tracker

Opened 6 years ago

Closed 5 years ago

#14359 closed bug (migrated)

triggering focus event with namespace runs all focus listeners

Reported by: peter@… Owned by: gibson042
Priority: low Milestone: None
Component: event Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Using jQuery 1.9 onwards, calling .trigger('focus.myevent') focusses the target element and triggers all "focus" handlers, regardless of namespace.

This is inconsistent with other events, where only handlers with the "myevent" namespace would be triggered.

http://jsfiddle.net/PeterChaplin/GUSN5/

This behaviour does not appear to be present in 1.7.2 or 1.8.3.

I have only tested this on Google Chrome Version 29.0.1547.66 m, in Windows 7

Change History (3)

comment:1 Changed 6 years ago by dmethvin

Component: unfiledevent
Priority: undecidedlow
Status: newopen

This is another result of triggering the native focus event so we can get the event order right. There are no jQuery extensions (namespaces, data) in those cases. See #13428.

comment:2 Changed 6 years ago by gibson042

Owner: set to gibson042
Status: openassigned

comment:3 Changed 5 years ago by m_gol

Resolution: migrated
Status: assignedclosed
Note: See TracTickets for help on using tickets.