Socket
Socket
Sign inDemoInstall

react-input-mask

Package Overview
Dependencies
0
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

6

build/InputElement.js

@@ -235,5 +235,7 @@ "use strict";

onKeyDown: function onKeyDown(event) {
var hasHandler = typeof this.props.onKeyPress === "function";
var hasHandler = typeof this.props.onKeyDown === "function";
if (event.ctrlKey || event.metaKey) {
this.props.onKeyDown(event);
if (hasHandler) {
this.props.onKeyDown(event);
}
return;

@@ -240,0 +242,0 @@ }

@@ -232,5 +232,7 @@ // https://github.com/sanniassin/react-input-mask

onKeyDown: function(event) {
var hasHandler = typeof this.props.onKeyPress === "function";
var hasHandler = typeof this.props.onKeyDown === "function";
if (event.ctrlKey || event.metaKey) {
this.props.onKeyDown(event);
if (hasHandler) {
this.props.onKeyDown(event);
}
return;

@@ -237,0 +239,0 @@ }

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc