Skip to content

Commit

Permalink
Single line refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sanniassin committed Feb 8, 2018
1 parent 4c1047b commit 5277167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class InputElement extends React.Component {
: this.value;

if (!oldMaskOptions.mask && !this.hasValue) {
newValue = this.getInputDOMNode().value;
newValue = this.getInputValue();
}

if (isMaskChanged || (this.maskOptions.mask && (newValue || showEmpty))) {
Expand Down

0 comments on commit 5277167

Please sign in to comment.