rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

When using items `{ label: string, value: string}` input with value should only have `value` as value for native form support #678

Open m-dressler opened 2 months ago

m-dressler commented 2 months ago

Currently when using items with the Array<Object> variant, the value of the hidden input which receives the name attribute is set to JSON.stringify version of the Array<Object>.

Instead, when there is a key value in Object, the input should use that for its value such that no form transformation on the FormData is required.