mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: accidental reference to event rather than this
This commit is contained in:
@@ -375,7 +375,7 @@ export class DOMEvent implements Event {
|
|||||||
returnValue.catch(console.error);
|
returnValue.catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passive && event.defaultPrevented) {
|
if (passive && this.defaultPrevented) {
|
||||||
console.warn('Unexpected call to event.preventDefault() in passive event listener.');
|
console.warn('Unexpected call to event.preventDefault() in passive event listener.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user