mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Prevent IE from firing live/delegate events on disabled elements. (#6911)
This commit is contained in:
parent
a4fc842019
commit
bd474799bf
@ -1069,6 +1069,11 @@ function liveHandler( event ) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IE will still dispatch events on disabled elements, so halt it (#6911)
|
||||||
|
if( event.target.disabled ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( event.namespace ) {
|
if ( event.namespace ) {
|
||||||
namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
|
namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user