You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to modify the Select component from the playground to accept number or number[] values in both the value and options props, but i can't seem to get it to work unless I use strings for everything.
Is there a limitation that it must be string values, or could there be a way to allow number types too?
The text was updated successfully, but these errors were encountered:
I think the main problem here is that HTML <select /> element does not allow us to capture values as numbers, only as strings. That's why Modular Forms probably doesn't do it either.
Yes i presumed this was the case. I can work with this i suppose. Its just that i would need to convert the values back to number types before submitting them back to my rest api.
I have been trying to modify the Select component from the playground to accept number or number[] values in both the value and options props, but i can't seem to get it to work unless I use strings for everything.
Is there a limitation that it must be string values, or could there be a way to allow number types too?
The text was updated successfully, but these errors were encountered: