Skip to content

Commit

Permalink
fix: replace ev.cancelBubble w/ cancelBubble (QwikDev#6127)
Browse files Browse the repository at this point in the history
* fix: replace ev.cancelBubble w/ cancelBubble

* remove whitespace

corrects stopPropagation attribute
  • Loading branch information
thejackshelton authored Apr 16, 2024
1 parent 03b4b6f commit 32425f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/qwik/src/qwikloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const qwikLoader = (doc: Document, hasInitialized?: number) => {
// if another async handler stopPropagation
cancelBubble =
cancelBubble || ev.cancelBubble || element.hasAttribute('stoppropagation:' + ev.type);
element = ev.bubbles && ev.cancelBubble !== true ? element.parentElement : null;
element = ev.bubbles && cancelBubble !== true ? element.parentElement : null;
}
};

Expand Down

0 comments on commit 32425f9

Please sign in to comment.