Open jzz2649 opened 1 month ago
React version: all
Link to code example:
const Test = () => { const [value, setValue] = useState('') return <input type="number" value={value} onChange={e => { console.log(e.target.value) if (e.target.value === '') { // Triggered when inputting 1- setValue('') } else { setValue(e.target.value) } }} /> }
Yes @neehhaa06
React version: all
Steps To Reproduce
Link to code example:
The current behavior
The expected behavior