react-debounce-input: Doesn't accept 0 as 'value'
<DebounceInput value={0} />
renders empty input
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (9 by maintainers)
Commits related to this issue
- Merge pull request #125 from Thiht/master Fix #86 and #62: handle 0 as default value — committed to nkbt/react-debounce-input by nkbt 4 years ago
It would be great if we could get this PR approved 😀. we use this debouncing on some numeric fields but have had to disable it for now.
If the prop is not set the value would be
undefined
which is== null
. So it’s safe. We’ve been running a local copy of the code with the applied fix in our code since December last year.Hi @nkbt, do you still have pretty bad internet there?