event binding on Input (and probably other components) #1544
Unanswered
NaturalHacks
asked this question in
Help
Replies: 4 comments
-
Is this Svelte 5? If so all events are now "onclick" not "on:click" |
Beta Was this translation helpful? Give feedback.
0 replies
-
ah will test in a minute, what about bind:value |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to use runes to make sure the binding is reactive with "$state" |
Beta Was this translation helpful? Give feedback.
0 replies
-
What @ieedan said 🫡 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Events and bindings don't get passed correctly on components, I battled this issue with Input, perhaps i'm a noob and have been doing it wrong.
Reproduction
import { Input } from "$lib/components/ui/input";
then try to use an event such as keydown
you will get nothing,
solution i have found is to add the required events ( and bind aswell)
to the component
Logs
No response
System Info
Severity
annoyance
Beta Was this translation helpful? Give feedback.
All reactions