reactbook icon indicating copy to clipboard operation
reactbook copied to clipboard

Whinepad: getValue returns string for FormInput with type="year"

Open pedrottimark opened this issue 9 years ago • 0 comments

While modifying the tests to learn about recent upgrades to Jest, expect getValue() to be equal to the defaultValue prop failed for <FormInput type="year" defaultValue={2015} /> from the schema sample because "2015" was the actual value. Hurray for tests.

However, not being sure what to do if the input is not a number and yet not distract from the main point, I will refrain from submitting a pull request ;)

pedrottimark avatar Oct 26 '16 20:10 pedrottimark