We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e05435 commit c20cf7cCopy full SHA for c20cf7c
1 file changed
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
0 commit comments