Comparing version 1.6.1 to 1.6.2
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package