fix: accidental reference to event rather than this

This commit is contained in:
shirakaba
2022-12-17 22:06:42 +09:00
parent 88020d92d8
commit fe60cfac04

View File

@@ -375,7 +375,7 @@ export class DOMEvent implements Event {
returnValue.catch(console.error);
}
if (passive && event.defaultPrevented) {
if (passive && this.defaultPrevented) {
console.warn('Unexpected call to event.preventDefault() in passive event listener.');
}