react-input-mask
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -109,5 +109,8 @@ // https://github.com/sanniassin/react-input-mask | ||
this.setCaretPos(i + 1); | ||
break; | ||
return; | ||
} | ||
} | ||
if (value.length && value[0] === maskChar) { | ||
this.setCaretPos(0); | ||
} | ||
}, | ||
@@ -253,3 +256,3 @@ getSelection: function() { | ||
var editablePos = deleteFromRight ? this.getRightEditablePos(caretPos) : this.getLeftEditablePos(caretPos - 1); | ||
if (editablePos) { | ||
if (editablePos !== null) { | ||
value = this.replaceSubstr(value, maskChar, editablePos); | ||
@@ -256,0 +259,0 @@ caretPos = editablePos; |
{ | ||
"name": "react-input-mask", | ||
"description": "Masked input component for React", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
15209
400