react-ui-basics 0.0.205 → 0.0.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutocompleteSelect.js +5 -2
- package/AutocompleteSelect.js.map +1 -1
- package/bundle.css +635 -635
- package/package.json +1 -1
- package/src/AutocompleteSelect.js +3 -2
package/package.json
CHANGED
|
@@ -389,13 +389,14 @@ class AutocompleteSelect extends PureComponent {
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
onClickOutside = () => {
|
|
392
|
-
const {allowCustom, required} = __props(this);
|
|
392
|
+
const {allowCustom, required, onFilterInputChange} = __props(this);
|
|
393
393
|
const {filterValue} = __state(this);
|
|
394
394
|
if (allowCustom && (!!filterValue || !required)) {
|
|
395
395
|
this.onSelect()
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
this.setState({isActive: false});
|
|
398
|
+
this.setState({isActive: false, filterValue: ''});
|
|
399
|
+
onFilterInputChange && onFilterInputChange('');
|
|
399
400
|
|
|
400
401
|
this.onCancel();
|
|
401
402
|
};
|