Closed alexauvray closed 1 week ago
on:click events are not handled on the Button ui component.
on:click
From what I see, the component isn't properly forwarding event handlers through the props.
<Button on:click={handleLogin}/>
No response
"@internationalized/date": "^3.5.6", "@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^4.0.0", "autoprefixer": "^10.4.20", "bits-ui": "1.0.0-next.59", "clsx": "^2.1.1", "lucide-svelte": "^0.460.1", "svelte": "^5.0.0", "svelte-check": "^4.0.0", "tailwind-merge": "^2.5.4", "tailwind-variants": "^0.3.0", "tailwindcss": "^3.4.9", "tailwindcss-animate": "^1.0.7", "typescript": "^5.0.0", "vite": "^5.0.3"
annoyance
Hello, @alexauvray
Seems you're on Svelte 5. Make sure you're using @shadcn-svelte@next and take notice that events are now written as so
@shadcn-svelte@next
-- on:click ++ onclick
Describe the bug
on:click
events are not handled on the Button ui component.From what I see, the component isn't properly forwarding event handlers through the props.
Reproduction
<Button on:click={handleLogin}/>
Logs
No response
System Info
Severity
annoyance