react-ui-basics 0.0.179 → 0.0.180
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 +29 -26
- package/AutocompleteSelect.js.map +1 -1
- package/bundle.css +597 -597
- package/package.json +1 -1
- package/src/AutocompleteSelect.js +4 -1
package/package.json
CHANGED
|
@@ -379,7 +379,7 @@ class AutocompleteSelect extends PureComponent {
|
|
|
379
379
|
onSelect = (selectedId) => {
|
|
380
380
|
const {mode, required, allowCustom, onSelect, onChange, default: defaultValue} = __props(this);
|
|
381
381
|
const {filterValue, selected: currentSelection} = __state(this);
|
|
382
|
-
const {labels = {}} = __props(this);
|
|
382
|
+
const {labels = {}, onFilterInputChange} = __props(this);
|
|
383
383
|
|
|
384
384
|
if (selectedId == null && (!!filterValue || !required) && allowCustom && (!this.input || !this.input.check()))
|
|
385
385
|
selectedId = filterValue.trim();
|
|
@@ -429,6 +429,9 @@ class AutocompleteSelect extends PureComponent {
|
|
|
429
429
|
errored,
|
|
430
430
|
});
|
|
431
431
|
|
|
432
|
+
if (filterValueWithCustom !== filterValue)
|
|
433
|
+
orNoop(onFilterInputChange)(filterValueWithCustom)
|
|
434
|
+
|
|
432
435
|
if (isActive && this.input)
|
|
433
436
|
this.input.getInput().focus()
|
|
434
437
|
|