New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@rc-component/select

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/select - npm Package Compare versions

Comparing version
1.6.9
to
1.6.10
+3
-1
es/BaseSelect/index.js

@@ -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 @@ }

{
"name": "@rc-component/select",
"version": "1.6.9",
"version": "1.6.10",
"description": "React Select",

@@ -5,0 +5,0 @@ "engines": {