react-input-mask
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -709,6 +709,9 @@ // https://github.com/sanniassin/react-input-mask | ||
var inputValue = this.formatValue(value); | ||
var isInputValueChanged = inputValue !== this.getInputValue(); | ||
// do not use this.getInputValue and this.setInputValue as this.refs.input | ||
// can be undefined at this moment if autoFocus attribute is set | ||
var isInputValueChanged = inputValue !== event.target.value; | ||
if (isInputValueChanged) { | ||
this.setInputValue(inputValue); | ||
event.target.value = inputValue; | ||
} | ||
@@ -715,0 +718,0 @@ |
@@ -698,6 +698,9 @@ // https://github.com/sanniassin/react-input-mask | ||
var inputValue = this.formatValue(value); | ||
var isInputValueChanged = inputValue !== this.getInputValue(); | ||
// do not use this.getInputValue and this.setInputValue as this.refs.input | ||
// can be undefined at this moment if autoFocus attribute is set | ||
var isInputValueChanged = inputValue !== event.target.value; | ||
if (isInputValueChanged) { | ||
this.setInputValue(inputValue); | ||
event.target.value = inputValue; | ||
} | ||
@@ -704,0 +707,0 @@ |
{ | ||
"name": "react-input-mask", | ||
"description": "Masked input component for React", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"homepage": "https://github.com/sanniassin/react-input-mask", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162960
3955