react-select-allow-create
Advanced tools
Comparing version 1.0.0-beta11 to 1.0.0-beta11.5
{ | ||
"name": "react-select-allow-create", | ||
"version": "1.0.0-beta11", | ||
"version": "1.0.0-beta11.5", | ||
"description": "A Select control built with and for ReactJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/Select.js", |
@@ -537,3 +537,3 @@ import React from 'react'; | ||
selectFocusedOption () { | ||
if (this.props.allowCreate && !this.state.focusedOption) { | ||
if (this.props.allowCreate && (!this.state.focusedOption || this.filterOptions(null).length === 0 ) { | ||
return this.selectValue(this.state.inputValue); | ||
@@ -540,0 +540,0 @@ } |
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
399450