You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we do the same we do when mixing slots and render tags and error (but only on element handlers, components might not be under the author's control)
Describe the bug
If you have both
onclick
andon:click
in the same component......the generated code is buggy — the handler is incorrectly hoisted, and
count
is undefined for the second handler.Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE5WPwQrCMBBEfyUEDy0K6jW2gt9hPNR0C8F2E5KNICH_bpKCgjePM7Nvlol80jN4Lq6R47AAF_xiLd9xetki_BNmgqy9CU4Vp_PKaUtniZJmIKZMQGI923gaCJpDe8pJzqaAirRBplE5WACpaVksiaSV2fbsWI4pSez231rs7oEokwbVrNWjj5-KVN9W1wsWa0-lV-KHFv_ieediRj1pGLkgFyDd0hvqXqI4IgEAAA==
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: