Side navigation
#11764 closed enhancement (fixed)
Opened May 14, 2012 02:52PM UTC
Closed June 27, 2012 04:14PM UTC
Allow delegated non-native events on disabled elements
Reported by: | jmarston | Owned by: | dmethvin |
---|---|---|---|
Priority: | low | Milestone: | 1.8 |
Component: | event | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently jQuery does not call delegated event handlers for disable elements. This is to keep consistency between browsers because IE is the only browser that raises events on disabled elements (see #6911 and #8165).
It would be useful, however, if we could raise non-native events with trigger() on disabled elements and still have delegated handlers be run. Since jQuery would be handling the triggering, bubbling, and dispatching there wouldn't be any browser inconsistencies.
Attachments (0)
Change History (4)
Changed May 14, 2012 03:12PM UTC by comment:1
Changed May 14, 2012 03:16PM UTC by comment:2
status: | new → open |
---|
Related to #11382, see the discussion there.
Changed June 26, 2012 01:39PM UTC by comment:3
component: | unfiled → event |
---|---|
milestone: | None → 1.8 |
owner: | → dmethvin |
priority: | undecided → low |
status: | open → assigned |
Changed June 27, 2012 04:14PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fix #11382. #11764. Only prevent click events on disabled elements.
We don't want a disabled link/button to register delegated clicks, but we do want events like mouseover or custom events.
This is a compromise, there is no perfect solution. Well, the browsers could be consistent about direct vs. delegated events but *that's* not gonna happen.
Changeset: 8a01c9201abb3a5311d5b0019b0322de89df6374
#11765 is a duplicate of this ticket.