mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 10:14:55 -05:00
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.
This commit is contained in:
@@ -388,8 +388,8 @@ jQuery.event = {
|
||||
|
||||
for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
|
||||
|
||||
// Don't process events on disabled elements (#6911, #8165)
|
||||
if ( cur.disabled !== true ) {
|
||||
// Don't process clicks (ONLY) on disabled elements (#6911, #8165, #xxxx)
|
||||
if ( cur.disabled !== true || event.type !== "click" ) {
|
||||
selMatch = {};
|
||||
matches = [];
|
||||
jqcur[0] = cur;
|
||||
|
||||
Reference in New Issue
Block a user