We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ba8002 + 497c6bc commit 2c243d4Copy full SHA for 2c243d4
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-otp-input",
3
- "version": "0.3.0",
+ "version": "0.3.1",
4
"description": "A fully customizable, one-time password input component for the web built with React",
5
"main": "lib/index.js",
6
"scripts": {
src/lib/index.jsx
@@ -78,6 +78,7 @@ class SingleOtpInput extends PureComponent<*> {
78
disabledStyle,
79
shouldAutoFocus,
80
isInputNum,
81
+ value,
82
...rest
83
} = this.props;
84
@@ -105,6 +106,7 @@ class SingleOtpInput extends PureComponent<*> {
105
106
this.input = input;
107
}}
108
disabled={isDisabled}
109
+ value={value ? value : ''}
110
{...rest}
111
/>
112
{!isLastChild && separator}
0 commit comments