Skip to content

Commit

Permalink
fix: accidental reference to event rather than this
Browse files Browse the repository at this point in the history
  • Loading branch information
shirakaba committed Dec 19, 2022
1 parent 775f6fe commit 7fae871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/data/dom-events/dom-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit 7fae871

Please sign in to comment.