Support the equivalence of Attributes
generic parameter in ActionReturn
for Attachment
#16676
Closed
vnphanquang
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Maybe this should just be a feature request issue? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Before Svelte attachment, Svelte action allows specifying additional attributes (including custom event listeners), on the element it is placed on:
svelte/packages/svelte/src/action/public.d.ts
Lines 27 to 38 in 5912754
For example:
As one would expect, the editor tooling will pick up
onclickoutside
as optional, andmusthave
as required - a nice ergonomics for element enhancement.I am missing this handy feature when using attachment, especially as a lib author. Perhaps we can support a similar pattern?
Related artifacts:
🤞
Beta Was this translation helpful? Give feedback.
All reactions