vlad-ignatov/react-numeric-input

onChange called infinitely when up/down button is pressed

Closed this issue · 1 comments

My super simple sample code:

render() {
<NumericInput   onChange={(newVal, valStr, comp) => {
                    debugger
                }}/> 
}

Issue: onChange() is called infinitely when I press the up button
Issue does not happen when I manually input the numeric value onto the textbox.
Do I need to do something inside onChange to prevent it from triggering again?

I'm so sorry.
I realized this issue only happens if the developer tools of Chrome (F12) is opened :-)
Thank you for this great component!