Skip to content
Snippets Groups Projects
Unverified Commit 2dc3e4a7 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Fix resetting inputs on data model page (#26550)

* Fix resetting inputs on data model page

* Fix for failing test
parent b3037501
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,9 @@ export default class InputBlurChange extends Component {
};
UNSAFE_componentWillReceiveProps(newProps) {
this.setState({ value: newProps.value });
if (newProps.value !== this.state.value) {
this.setState({ value: newProps.value });
}
}
onChange(event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment