Skip to content

Commit 70006ff

Browse files
committed
Fixed primefaces#998 - Value doesnt change on Input mask when unmask is enabled
1 parent bf638d5 commit 70006ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/inputmask/InputMask.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ export class InputMask extends Component {
545545
this.renderTooltip();
546546
}
547547

548-
if (this.input.value !== this.props.value) {
548+
let isValueUpdated = this.props.unmask ? this.props.value !== this.getUnmaskedValue() : this.input.value !== this.props.value;
549+
if (isValueUpdated) {
549550
this.updateValue();
550551
}
551552
}

0 commit comments

Comments
 (0)