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.8 to 0.7.9

2

build/InputElement.js

@@ -480,3 +480,3 @@ // https://github.com/sanniassin/react-input-mask

}
if (mask.mask && this.isEmpty(newValue) && !showEmpty && !this.hasValue) {
if (mask.mask && this.isEmpty(newValue) && !showEmpty && (!this.hasValue || !nextProps.value)) {
newValue = "";

@@ -483,0 +483,0 @@ }

@@ -473,3 +473,3 @@ // https://github.com/sanniassin/react-input-mask

}
if (mask.mask && this.isEmpty(newValue) && !showEmpty && !this.hasValue) {
if (mask.mask && this.isEmpty(newValue) && !showEmpty && (!this.hasValue || !nextProps.value)) {
newValue = "";

@@ -476,0 +476,0 @@ }

{
"name": "react-input-mask",
"description": "Masked input component for React",
"version": "0.7.8",
"version": "0.7.9",
"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