Is there a way to set a default value that is not valid?
This is due to svelte 5 - where you have to provide a meaningful non-undefined prop for bound values. e.g. for radio buttons, you need to default to
""
""
, not undefined.
I am not sure how to define an Arktype type that accepts only an enum of values from the radio button, but defaults to empty-string. When I do the obvious
inputType.default("")
inputType.default("")
I get errors:
ParseError: Default value is not assignable: must be "enum_option" (was "")
ParseError: Default value is not assignable: must be "enum_option" (was "")