Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit df7a059

Browse files
committed
reset defined input on blur
1 parent 5ec2b60 commit df7a059

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DefinedRanges.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class DefinedRanges extends Component {
4141
<input
4242
className={styles.inputRangeInput}
4343
onFocus={() => this.setState({ focusedInput: i, rangeOffset: 0 })}
44+
onBlur={() => this.setState({ rangeOffset: 0 })}
4445
onChange={e => {
4546
let value = parseInt(e.target.value, 10);
4647
value = isNaN(value) ? 0 : Math.max(Math.min(99999, value), 0);

0 commit comments

Comments
 (0)