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

rc-input

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

es/Input.js

@@ -140,3 +140,2 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

var handleKeyDown = function handleKeyDown(e) {
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
if (onPressEnter && e.key === 'Enter' && !keyLockRef.current) {

@@ -146,8 +145,9 @@ keyLockRef.current = true;

}
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
};
var handleKeyUp = function handleKeyUp(e) {
onKeyUp === null || onKeyUp === void 0 || onKeyUp(e);
if (e.key === 'Enter') {
keyLockRef.current = false;
}
onKeyUp === null || onKeyUp === void 0 || onKeyUp(e);
};

@@ -154,0 +154,0 @@ var handleFocus = function handleFocus(e) {

@@ -150,3 +150,2 @@ "use strict";

var handleKeyDown = function handleKeyDown(e) {
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
if (onPressEnter && e.key === 'Enter' && !keyLockRef.current) {

@@ -156,8 +155,9 @@ keyLockRef.current = true;

}
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
};
var handleKeyUp = function handleKeyUp(e) {
onKeyUp === null || onKeyUp === void 0 || onKeyUp(e);
if (e.key === 'Enter') {
keyLockRef.current = false;
}
onKeyUp === null || onKeyUp === void 0 || onKeyUp(e);
};

@@ -164,0 +164,0 @@ var handleFocus = function handleFocus(e) {

{
"name": "rc-input",
"version": "1.6.1",
"version": "1.6.2",
"description": "React input component",

@@ -5,0 +5,0 @@ "keywords": [

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