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.3.9 to 0.3.10

14

dist/es5.js

@@ -128,3 +128,3 @@ 'use strict';

value: function componentDidMount() {
this.props.onMount.call(this);
this.props.onMount.call(this, this);

@@ -229,3 +229,3 @@ if (!this.props.search) {

this.props.onChange.call(this, value);
this.props.onChange.call(this, value, this);
this.updateOptionsList(value);

@@ -286,3 +286,3 @@ }

this.props.onFocus.call(this);
this.props.onFocus.call(this, this);
}

@@ -304,3 +304,3 @@ }, {

this.refs.container.className = this.classes.container;
this.props.onBlur.call(this);
this.props.onBlur.call(this, this);

@@ -326,2 +326,6 @@ if (!this.props.multiple && this.refs.hasOwnProperty('select')) {

if (this.props.mode === 'input' && !this.selected) {
return;
}
if (e.key === 'Enter') {

@@ -467,3 +471,3 @@ e.preventDefault();

this.setState({ value: currentValue, search: search, options: this.state.defaultOptions });
this.props.valueChanged.call(this, option, this.state, this.props);
this.props.valueChanged.call(this, option, this.state, this.props, this);

@@ -470,0 +474,0 @@ if (!this.props.search || this.props.mode === 'input') {

@@ -104,3 +104,3 @@ 'use strict';

componentDidMount() {
this.props.onMount.call(this);
this.props.onMount.call(this, this);

@@ -197,3 +197,3 @@ if (!this.props.search) {

this.props.onChange.call(this, value);
this.props.onChange.call(this, value, this);
this.updateOptionsList(value);

@@ -248,3 +248,3 @@ }

this.props.onFocus.call(this);
this.props.onFocus.call(this, this);
}

@@ -263,3 +263,3 @@

this.refs.container.className = this.classes.container;
this.props.onBlur.call(this);
this.props.onBlur.call(this, this);

@@ -282,2 +282,6 @@ if (!this.props.multiple && this.refs.hasOwnProperty('select')) {

if (this.props.mode === 'input' && !this.selected) {
return;
}
if (e.key === 'Enter') {

@@ -417,3 +421,3 @@ e.preventDefault();

this.setState({value: currentValue, search: search, options: this.state.defaultOptions});
this.props.valueChanged.call(this, option, this.state, this.props);
this.props.valueChanged.call(this, option, this.state, this.props, this);

@@ -420,0 +424,0 @@ if (!this.props.search || this.props.mode === 'input') {

{
"name": "react-select-search",
"version": "0.3.9",
"version": "0.3.10",
"description": "React powered selectbox with filter",

@@ -5,0 +5,0 @@ "main": "dist/es5.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