svelte-use-click-outside icon indicating copy to clipboard operation
svelte-use-click-outside copied to clipboard

Zero dependency Svelte's action to handle click outside event

Results 2 svelte-use-click-outside issues
Sort by recently updated
recently updated
newest added

I am using the directive on a div and have another component inside it, when I click on the nested component it executes the function I connected to the directive...

Prevent this function from being triggered if you mouse-down within the element, and then mouse-up outside of it. Imo, this should not count as a "click".