Can I make the NumberField empty, but controlled? #5738
-
The
According to what I have found, the recommendation is to just use an empty string so that the input is controlled from the start. Passing However, with that type definition I can't pass an empty string, and if I try to force it, it is parsed to
I get the type safety, but in this case I would like to break it, leaving the number input blank, but controlled. Any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think setting it to NaN should work |
Beta Was this translation helpful? Give feedback.
I think setting it to NaN should work