customized-autocomplete
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -77,3 +77,4 @@ "use strict"; | ||
noOptionsText: _propTypes["default"].any.isRequired, | ||
inputLabel: _propTypes["default"].any.isRequired | ||
inputLabel: _propTypes["default"].any.isRequired, | ||
setStopBlocking: _propTypes["default"].any | ||
}; | ||
@@ -183,3 +184,6 @@ var defaultProps = { | ||
if (inputValue) { | ||
this.props.setStopBlocking(true); | ||
return this.props.optionApiMethod(inputValue).then(function (options) { | ||
_this2.props.setStopBlocking(false); | ||
_this2.setState({ | ||
@@ -193,2 +197,4 @@ defaultOptions: options.data.map(function (option) { | ||
}); | ||
})["catch"](function () { | ||
_this2.props.setStopBlocking(false); | ||
}); | ||
@@ -195,0 +201,0 @@ } |
{ | ||
"name": "customized-autocomplete", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Generalized version of mui autocomplete", | ||
@@ -5,0 +5,0 @@ "main": "lib/CustomizedAutocomplete.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
14738
231