mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Event: Fix isDefaultPrevented for bubbled events in Android 2.3
Fixes #14897 Closes gh-1545
This commit is contained in:
parent
890d441aa5
commit
ad032d3c7d
@ -634,9 +634,9 @@ jQuery.Event = function( src, props ) {
|
||||
// Events bubbling up the document may have been marked as prevented
|
||||
// by a handler lower down the tree; reflect the correct value.
|
||||
this.isDefaultPrevented = src.defaultPrevented ||
|
||||
// Support: Android < 4.0
|
||||
src.defaultPrevented === undefined &&
|
||||
src.getPreventDefault && src.getPreventDefault() ?
|
||||
// Support: Android < 4.0
|
||||
src.returnValue === false ?
|
||||
returnTrue :
|
||||
returnFalse;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user