diff --git a/src/index.js b/src/index.js index 20568a2..b0a507a 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,7 @@ var MaskedInput = React.createClass({ }, componentWillReceiveProps(nextProps) { - if (this.props.value !== nextProps.value) { + if (this.mask.hasValueChanged(nextProps.value)) { this.mask.setValue(nextProps.value) } if (this.props.mask !== nextProps.mask) {