VoliJS / NestedLink

Callback-free React forms with painless validation.
MIT License
194 stars 25 forks source link

Allow empty input on NumberInput #13

Open richard-engineering opened 8 years ago

richard-engineering commented 8 years ago

Hello,

I'm using NumberInput because it strips out letters and is convenient. However I noticed that if I delete the number it does not in fact update the link associated with it. I use validate.js against the json object everything links to when the user submits to validate input. Thus it can result in differences between what is shown on the screen and the data. It would be good to have a prop on NumberInput to allow empty input to change the link (can set it to undefined or null).

Thanks!

gaperton commented 8 years ago

Setting it to null could be a good idea, thanks. I will make corresponding change.