react-magma-dom 4.12.0-next.4 → 4.12.0-next.5
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/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/react-magma-dom.cjs.development.js +4 -1
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -19724,7 +19724,10 @@ function defaultOnInputValueChange(changes, items, itemToString, disableCreateIt
|
|
|
19724
19724
|
value: inputValue,
|
|
19725
19725
|
react_magma__created_item: true
|
|
19726
19726
|
} : null).filter(Boolean) : items.current;
|
|
19727
|
-
|
|
19727
|
+
var firstEnabledIndex = filteredItems.findIndex(function (item) {
|
|
19728
|
+
return !isItemDisabled(item);
|
|
19729
|
+
});
|
|
19730
|
+
setHighlightedIndex(firstEnabledIndex);
|
|
19728
19731
|
setDisplayItems(filteredItems);
|
|
19729
19732
|
}
|
|
19730
19733
|
onInputChange && typeof onInputChange === 'function' && onInputChange(changes);
|