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
When use:enhance is attached to a <form> and the user selects an item using shadcn-svelte <Select /> component, the value in the UI will stay the same after submitting the form. However, the value of the Select input element actually remains empty after the form submission, even if the UI shows otherwise. I assume this is not the intended behavior, as if use:enhance is not attached to the form element, the Select components will clear as expected.
Describe the bug
When
use:enhance
is attached to a<form>
and the user selects an item using shadcn-svelte<Select />
component, the value in the UI will stay the same after submitting the form. However, the value of the Select input element actually remains empty after the form submission, even if the UI shows otherwise. I assume this is not the intended behavior, as ifuse:enhance
is not attached to the form element, the Select components will clear as expected.Reproduction
I actually tested it using the documentation provided in https://www.shadcn-svelte.com/docs/components/select.
In the following video, I clicked the "Submit" button exactly twice.
https://github.com/huntabyte/shadcn-svelte/assets/112128328/67c33d37-6def-48ae-9834-0d7058d190a9
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: