#10794 closed bug (fixed)
.triggerHandler should not .preventDefault()
Reported by: | dmethvin | Owned by: | dmethvin |
---|---|---|---|
Priority: | high | Milestone: | 1.7.1 |
Component: | event | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Currently, .triggerHandler()
calls event.preventDefault()
to avoid the default action running. However, this prevents the caller from using the default action indication that might be returned by one of the handlers. Since we have an onlyHandlers
variable we can use that instead and not mess with the event.
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Milestone: | None → 1.7.1 |
Owner: | set to dmethvin |
Priority: | undecided → high |
Status: | new → assigned |
comment:2 Changed 12 years ago by
Blocking: | 10699 added |
---|
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 11 years ago by
Blocking: | 10699 removed |
---|
(In #10699) @maranomynet, I closed this ticket because I thought we'd addressed the common use cases. If I am to interpret your snarky posts and tweets, we haven't addressed a use case that is important to you.
Can you describe your situation a bit more? Is there a reason why the handlers themselves cannot stop propagation?
Note: See
TracTickets for help on using
tickets.
Fix #10794. .triggerHandler() should not .preventDefault().
This also provides a resolution for #10699.