Closed gregorw closed 2 weeks ago
Duplicate of #5112. This is addressed in Svelte 5 in the event handler case (https://svelte-5-preview.vercel.app/docs/event-handlers). But, by design, directives aren't interpreted at runtime when added as attributes.
Describe the bug
When passing a function prop with spread props it won’t work.
The
on:click
handler is added as HTML attribute with quoteson:click="() => alert('Hi')"
.Reproduction
https://svelte.dev/repl/d2c090b0841741c4b8a911ee6c2daa44?version=4.2.17
Logs
No response
System Info
Severity
annoyance