react-select-search
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -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') { |
14
index.js
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52990
1098