-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I have use valibot's number schema, and have an input component connected to it with type="number". The problem is, the value is always a string, which cannot be equal to a number (123 !== "123").
I think the getElementInput function, which is responsible for coercing the element.value according to the type attribute, should give special handling to the "number" type. If it would coerce the string to a number, then spreading field.props would be usable with number schemas.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request