Skip to content

Commit 1b17682

Browse files
committed
Update state.value + state.input on props change 40818419#69 40818419#129
makes it possible to reset ReactCodeInput’s internal state and the values it renders in its inputs by passing in an updated this.props.value
1 parent d21a4d2 commit 1b17682

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ReactCodeInput.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class ReactCodeInput extends Component {
5454
}
5555
this.setState({
5656
value: nextProps.value,
57+
input: getInputArray(nextProps),
5758
});
5859
}
5960

0 commit comments

Comments
 (0)