Replies: 2 comments 1 reply
-
@vegeta897 that totally makes sense. I definitely got into similar situations before but forgot to patch it. Will be available in an upcoming release shortly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Now available in @svelte-put/[email protected]. Thanks @vegeta897 a lot for raising this. Closing for now but feel free to re-open if necessary 🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the
clickoutside
action can only be used on anHTMLElement
without a type error.If you ignore the error and use it on, for example, a
<g>
element inside an SVG, it appears to work perfectly. This is great for taking advantage of the precise hit zones of SVG shapes.I don't think any methods or properties in the
clickoutside
code require the node to specifically be anHTMLElement
, but maybe I'm missing something.I propose broadening this type up to
Element
orNode
. Is this something that could be considered? Thanks!Beta Was this translation helpful? Give feedback.
All reactions