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

Executes when click happens inside a nested component

Open phaberest opened this issue 2 years ago • 5 comments

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

The component is inside a slot that is inside the div with the directive

phaberest avatar Feb 12 '23 17:02 phaberest

Hi, can you provide a code example?

Th1nkK1D avatar Feb 26 '23 14:02 Th1nkK1D

Sure! I'll try to replicate the problem in a codesandbox example so that you can test it live. 🙌🏻

I'll come back with it ASAP

phaberest avatar Feb 26 '23 14:02 phaberest

@phaberest were you able to figure this out? I'm facing a similar issue.

pasevin avatar Sep 16 '24 14:09 pasevin

@phaberest were you able to figure this out? I'm facing a similar issue.

Can you provide an example that I can reproduce?

Th1nkK1D avatar Sep 17 '24 13:09 Th1nkK1D

I'm sorry guys, I'm afraid I opted for another approach and totally forgot to come back here. Weird it affected only the two of us @pasevin 👀

phaberest avatar Oct 03 '24 09:10 phaberest