Skip to content

Commit 785280c

Browse files
committed
🚑 onBlur hotfix
1 parent a7ade27 commit 785280c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-otp-input",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A fully customizable, one-time password input component for the web built with React",
55
"main": "lib/index.js",
66
"scripts": {

src/lib/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ class OtpInput extends Component<Props, State> {
244244
});
245245
e.target.select();
246246
}}
247+
onBlur={() => this.setState({ activeInput: -1 })}
247248
separator={separator}
248249
inputStyle={inputStyle}
249250
focusStyle={focusStyle}

0 commit comments

Comments
 (0)