sveltekit-superforms icon indicating copy to clipboard operation
sveltekit-superforms copied to clipboard

superForms does something strange with form values (bind:value)

Open ktarmyshov opened this issue 1 year ago • 1 comments

  • [X] Before posting an issue, read the FAQ and search the previous issues.

Description A clear and concise description of what the bug is, and, unless obvious, what you expected instead. I start the form with skeleton modal. The form contains one text field, and two Ids (selected via

If I change the id1 and id2 order in the schema declaration z.object({id2, id1}) the behaviour is reversed - the id2 is '' (empty string) and id1 is undefined so it is selected.

If applicable, a MRE Use one of these stackblitz templates to create a minimal reproducible example that you can link to here:

ktarmyshov avatar Mar 27 '24 18:03 ktarmyshov

Sounds related to this: https://superforms.rocks/faq#why-does-the-form-get-tainted-without-any-changes-when-i-use-a-select-element

ciscoheat avatar Mar 27 '24 20:03 ciscoheat