We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315862c commit 2ae308cCopy full SHA for 2ae308c
src/ReactCodeInput.js
@@ -43,7 +43,7 @@ class ReactCodeInput extends Component {
43
}
44
45
UNSAFE_componentWillReceiveProps(nextProps) {
46
- if (nextProps.value == null) {
+ if (nextProps.value == null || nextProps.value === this.props.value) {
47
return;
48
49
this.setState({
0 commit comments