Hi there !
I've found a bug and this is a small example to reproduce:
import React, {useState} from "react";
import {DebounceInput} from "react-debounce-input";
const MIN_LENGTH = 4;
const App = () => {
const [text, setText] = useState("");
return (
<>
<DebounceInput value={text} onChange={(e) => setText(e.target.value)} debounceTimeout={250} minLength={MIN_LENGTH} />
</>
)
};
export default App;
when input value length is MIN_LENGTH all is OK, but after I press backspace (so length become less than MIN_LENGTH) the whole input value removes.
Hi there !
I've found a bug and this is a small example to reproduce:
when input value length is
MIN_LENGTHall is OK, but after I press backspace (so length become less thanMIN_LENGTH) the whole input value removes.