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 0.5.1 to 0.5.2

11

dist/index.js

@@ -89,7 +89,16 @@ 'use strict';

var value = !props.value && props.multiple ? [] : props.value;
var search = '';
if (value) {
var option = _this.findByValue(options, value);
if (option) {
search = option.name;
}
}
_this.placeSelectedFirst(options, value);
_this.state = {
search: '',
search: search,
value: value,

@@ -96,0 +105,0 @@ defaultOptions: props.options,

2

package.json
{
"name": "react-select-search",
"version": "0.5.1",
"version": "0.5.2",
"description": "React powered selectbox with filter",

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

@@ -61,7 +61,16 @@ import React from 'react';

let value = (!props.value && props.multiple) ? [] : props.value;
let search = '';
if (value) {
let option = this.findByValue(options, value);
if (option) {
search = option.name;
}
}
this.placeSelectedFirst(options, value);
this.state = {
search : '',
search : search,
value : value,

@@ -68,0 +77,0 @@ defaultOptions : props.options,

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