react-input-mask
Advanced tools
Comparing version 0.7.6 to 0.7.7
@@ -471,3 +471,8 @@ // https://github.com/sanniassin/react-input-mask | ||
if (pos === null || filledLen < pos) { | ||
this.setCaretPos(this.getRightEditablePos(filledLen)); | ||
if (this.isFilled(newValue)) { | ||
pos = filledLen; | ||
} else { | ||
pos = this.getRightEditablePos(filledLen); | ||
} | ||
this.setCaretPos(pos); | ||
} | ||
@@ -474,0 +479,0 @@ } |
@@ -463,3 +463,9 @@ // https://github.com/sanniassin/react-input-mask | ||
if (pos === null || filledLen < pos) { | ||
this.setCaretPos(this.getRightEditablePos(filledLen)); | ||
if (this.isFilled(newValue)) { | ||
pos = filledLen; | ||
} | ||
else { | ||
pos = this.getRightEditablePos(filledLen); | ||
} | ||
this.setCaretPos(pos); | ||
} | ||
@@ -466,0 +472,0 @@ } |
{ | ||
"name": "react-input-mask", | ||
"description": "Masked input component for React", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"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
1
84071
10
2032