Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit c116592

Browse files
bielinskimbielinskim
andauthored
fix(clickOutside): set event propagation to capturing phase
Co-authored-by: bielinskim <[email protected]>
1 parent 0e3c45a commit c116592

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte-materialify/src/actions/ClickOutside

1 file changed

+1
-1
lines changed

packages/svelte-materialify/src/actions/ClickOutside/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default (node, _options = {}) => {
1010
node.dispatchEvent(new CustomEvent('clickOutside'));
1111
}
1212
}
13-
document.addEventListener('click', detect, { passive: true });
13+
document.addEventListener('click', detect, { passive: true, capture: true });
1414
return {
1515
destroy() {
1616
document.removeEventListener('click', detect);

0 commit comments

Comments
 (0)