Skip to content

Commit

Permalink
version 0.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sanniassin authored and sanniassin committed Mar 30, 2017
1 parent 1c241e1 commit 9fd9f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/InputElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ var InputElement = React.createClass({
}
}
}
if (mask.mask && this.isEmpty(newValue) && !showEmpty && !this.hasValue) {
if (mask.mask && this.isEmpty(newValue) && !showEmpty && (!this.hasValue || !nextProps.value)) {
newValue = "";
}
this.value = newValue;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-input-mask",
"description": "Masked input component for React",
"version": "0.7.8",
"version": "0.7.9",
"homepage": "https://github.com/sanniassin/react-input-mask",
"license": "MIT",
"author": "Nikita Lobachev <[email protected]>",
Expand Down

0 comments on commit 9fd9f56

Please sign in to comment.