@lvce-editor/find-widget-worker 3.16.0 → 3.16.1
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.
|
@@ -2574,13 +2574,17 @@ const getKeyBindings = () => {
|
|
|
2574
2574
|
}, ...getFocusNavigationKeyBindings()];
|
|
2575
2575
|
};
|
|
2576
2576
|
|
|
2577
|
-
const handleInput = (state, value, inputSource = User$1) => {
|
|
2577
|
+
const handleInput = async (state, value, inputSource = User$1) => {
|
|
2578
2578
|
const newState = refresh(state, value, inputSource);
|
|
2579
2579
|
if (inputSource !== User$1) {
|
|
2580
2580
|
return newState;
|
|
2581
2581
|
}
|
|
2582
|
-
|
|
2582
|
+
const selectedState = newState.matchCount > 0 && !newState.inputErrorMessage ? await focusFirst({
|
|
2583
2583
|
...newState,
|
|
2584
|
+
matchIndex: -1
|
|
2585
|
+
}) : newState;
|
|
2586
|
+
return {
|
|
2587
|
+
...selectedState,
|
|
2584
2588
|
focus: FocusSearchInput,
|
|
2585
2589
|
focusSource: User
|
|
2586
2590
|
};
|