@economic/taco 2.63.1 → 2.63.2-combobox-search-no-sorting.0
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/taco.cjs +1 -1
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +1 -1
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.js
CHANGED
@@ -18461,7 +18461,7 @@ const useCombobox = (props, ref) => {
|
|
18461
18461
|
React.useEffect(() => {
|
18462
18462
|
const isCurrentValue = value !== void 0 && value !== null && inputValue === String(value);
|
18463
18463
|
if (inputValue && data.length && !isCurrentValue) {
|
18464
|
-
setCurrentIndex(0);
|
18464
|
+
setCurrentIndex(getIndexFromValue(data, inputValue) || 0);
|
18465
18465
|
if (!open) {
|
18466
18466
|
setOpen(true);
|
18467
18467
|
}
|