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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.205",
3
+ "version": "0.0.206",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -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
  };