Closed Ennoriel closed 1 year ago
Hey (again)!
Thanks again for the quick fix last time. :)
I think it would be nice to have the input hidden slotable because that way, it'd be possible to format the value (use one attribute, or format with a different method than JSON.stringify):
JSON.stringify
the line in question https://github.com/rob-balfre/svelte-select/blob/master/src/lib/Select.svelte#L814 😃
Edit: the fallback could also be surronded by a non null check on name since the input hidden is only usefull in case there is a name
name
Have a nice day 🌞
@Ennoriel interesting idea, fancy making a PR? As long as it defaults to current setup it would be a nice non-breaking addition
yes :)
Released in 5.6.0
5.6.0
Hey (again)!
Thanks again for the quick fix last time. :)
I think it would be nice to have the input hidden slotable because that way, it'd be possible to format the value (use one attribute, or format with a different method than
JSON.stringify
):the line in question https://github.com/rob-balfre/svelte-select/blob/master/src/lib/Select.svelte#L814 😃
Edit: the fallback could also be surronded by a non null check on
name
since the input hidden is only usefull in case there is a nameHave a nice day 🌞