You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with setting debounceTimeout prop to -1 and not getting any onChange event triggered even when pressing the enter key. react-debounce-input version is 3.1.0
Below is example code to reproduce the issue. Am I missing some props that should be passed along for the debounceTimeout -1 to work?
By quickly debugging the code it seems that in the forceNotify function the execution always returns on the first if statement where it checks the this.isDebouncing value
if(!this.isDebouncing&&this.props.timeout>=0){// << just extend the condition with timeoutreturn;}if(this.cancel){this.cancel();}const{value}=this.state;const{minLength}=this.props;if(value.length>=minLength){this.doNotify(event);}else{this.doNotify({...event,target: {...event.target, value}});}
Hi,
I have a problem with setting
debounceTimeout
prop to -1 and not getting anyonChange
event triggered even when pressing the enter key. react-debounce-input version is 3.1.0Below is example code to reproduce the issue. Am I missing some props that should be passed along for the debounceTimeout -1 to work?
By quickly debugging the code it seems that in the
forceNotify
function the execution always returns on the first if statement where it checks thethis.isDebouncing
valueThe text was updated successfully, but these errors were encountered: