Socket
Socket
Sign inDemoInstall

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.7.4 to 0.7.5

7

build/InputElement.js

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

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