Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-input-mask

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-mask - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

7

InputElement.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc