NestedLink icon indicating copy to clipboard operation
NestedLink copied to clipboard

Allow empty input on NumberInput

Open richard-engineering opened this issue 9 years ago • 1 comments

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!

richard-engineering avatar Sep 12 '16 21:09 richard-engineering

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

gaperton avatar Sep 21 '16 19:09 gaperton