Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 11, 2024 · 1 comment

Comments

@m-dressler
Copy link

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.

@samal-rasmussen
Copy link

samal-rasmussen commented Aug 5, 2024

I believe this is the intended workaround for this:
#579
#581
https://svelte-select-examples.vercel.app/examples/slots/input-hidden

But JSON.stringify still causes issues for values that cannot serialize with JSON.stringify:
#700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants