@rc-component/select
Advanced tools
@@ -233,3 +233,5 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| // Do not submit form when type in the input; prevent Space from scrolling page | ||
| if (mode !== 'combobox') { | ||
| const isCombobox = mode === 'combobox'; | ||
| const isEditable = isCombobox || showSearch; | ||
| if (isSpaceKey && !isEditable || isEnterKey && !isCombobox) { | ||
| event.preventDefault(); | ||
@@ -236,0 +238,0 @@ } |
@@ -242,3 +242,5 @@ "use strict"; | ||
| // Do not submit form when type in the input; prevent Space from scrolling page | ||
| if (mode !== 'combobox') { | ||
| const isCombobox = mode === 'combobox'; | ||
| const isEditable = isCombobox || showSearch; | ||
| if (isSpaceKey && !isEditable || isEnterKey && !isCombobox) { | ||
| event.preventDefault(); | ||
@@ -245,0 +247,0 @@ } |
+1
-1
| { | ||
| "name": "@rc-component/select", | ||
| "version": "1.6.9", | ||
| "version": "1.6.10", | ||
| "description": "React Select", | ||
@@ -5,0 +5,0 @@ "engines": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
327694
0.08%7912
0.05%