Skip to content

Commit

Permalink
Fixed #439
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 6, 2018
1 parent 6aa6296 commit ca8f042
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/inputmask/InputMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,13 @@ export class InputMask extends Component {
this.updateValue();
}

shouldComponentUpdate(nextProps, nextState) {
if(nextProps.value === this.props.value) {
return false;
}
return true;
}

render() {
if(this.input && this.input.value !== this.props.value) {
this.updateValue();
Expand Down

0 comments on commit ca8f042

Please sign in to comment.