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

react-select-search

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-search - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

5

dist/cjs/Components/Options.js

@@ -42,7 +42,8 @@ "use strict";

if (!current || highlighted < 0 && Array.isArray(value) || value === null) {
if (!current || highlighted < 0 && value === null) {
return;
}
var query = highlighted > -1 ? "[data-index=\"" + highlighted + "\"]" : "[data-value=\"" + escape(value) + "\"]";
var val = Array.isArray(value) ? value[0] : value;
var query = highlighted > -1 ? "[data-index=\"" + highlighted + "\"]" : "[data-value=\"" + escape(val) + "\"]";
var selected = current.querySelector(query);

@@ -49,0 +50,0 @@

@@ -36,7 +36,8 @@ import { memo, useCallback, useEffect, useRef } from 'react';

if (!current || highlighted < 0 && Array.isArray(value) || value === null) {
if (!current || highlighted < 0 && value === null) {
return;
}
const query = highlighted > -1 ? `[data-index="${highlighted}"]` : `[data-value="${escape(value)}"]`;
const val = Array.isArray(value) ? value[0] : value;
const query = highlighted > -1 ? `[data-index="${highlighted}"]` : `[data-value="${escape(val)}"]`;
const selected = current.querySelector(query);

@@ -43,0 +44,0 @@

2

package.json
{
"name": "react-select-search",
"version": "3.0.7",
"version": "3.0.8",
"description": "Lightweight select component for React",

@@ -5,0 +5,0 @@ "main": "dist/esm/index.js",

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