Opened 10 years ago
Closed 8 years ago
#14359 closed bug (migrated)
triggering focus event with namespace runs all focus listeners
Reported by: | 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 10 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 10 years ago by
Owner: | set to gibson042 |
---|---|
Status: | open → assigned |
Third time's the charm... https://github.com/jquery/jquery/pull/1367
comment:3 Changed 8 years ago by
Resolution: | → migrated |
---|---|
Status: | assigned → closed |
Migrated to https://github.com/jquery/jquery/issues/1750
Note: See
TracTickets for help on using
tickets.
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.