Open rafeememon opened 6 years ago
@rafeememon FWIW this behavior is intended; it's copied from Sketch's numeric input. Open to changing it if it's unintuitive. @llorca what do you think?
Cool, I think it's unintuitive to me because I would expect for any value given to onValueChange
to be within the min/max I specify so that I don't need to write my own bounds-checking logic.
@cmslewis seems like reasonable request! why it handleChange
called with 0
? intuitively I'd guess it wouldn't be called, or be called with null
given the current behavior, i think handleChange
should have been called with 1
: the minimum.
Bug report
Steps to reproduce
1.
Actual behavior
handleChange
is called with0
Expected behavior
handleChange
is not called. I think I also expect the text to reset to thevalue
prop.