Permalink
Show file tree
Hide file tree
2 comments
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ref #12652: Allow overriding native .click() suppression
(cherry picked from commit 14b09ef)
- Loading branch information
Showing
2 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a120bbb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @gibson042
The code.
jquery/src/event.js
Lines 477 to 483 in f18ca7b
For the checkbox, when you fire the native click event directly. It will ignore the customized jQuery event.
For example:
var e = jQuery.Event("click");
e.shiftKey = true;
Try on jsfiddle: https://jsfiddle.net/xczcxzcxzcxzcx/5tzsnq6z/
a120bbb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duteng We know; see #1367 and tickets referencing it for an explanation about why this is still the case.