@lvce-editor/find-widget-worker 3.7.1 → 3.7.2
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.
|
@@ -1088,6 +1088,7 @@ const create = (uid, x, y, width, height, parentUid) => {
|
|
|
1088
1088
|
focus: 0,
|
|
1089
1089
|
focused: false,
|
|
1090
1090
|
focusSource: Unknown,
|
|
1091
|
+
focusVersion: 0,
|
|
1091
1092
|
height: 0,
|
|
1092
1093
|
history: [],
|
|
1093
1094
|
inputBorderWidth: 1,
|
|
@@ -1135,7 +1136,7 @@ const isEqual$6 = (oldState, newState) => {
|
|
|
1135
1136
|
};
|
|
1136
1137
|
|
|
1137
1138
|
const isEqual$5 = (oldState, newState) => {
|
|
1138
|
-
return oldState.focused === newState.focused && oldState.focus === newState.focus;
|
|
1139
|
+
return oldState.focused === newState.focused && oldState.focus === newState.focus && oldState.focusVersion === newState.focusVersion;
|
|
1139
1140
|
};
|
|
1140
1141
|
|
|
1141
1142
|
const isEqual$4 = (oldState, newState) => {
|
|
@@ -1217,7 +1218,11 @@ const focusCloseButton = state => {
|
|
|
1217
1218
|
};
|
|
1218
1219
|
|
|
1219
1220
|
const focusFind = state => {
|
|
1220
|
-
|
|
1221
|
+
const newState = setFindWidgetFocus(state, FocusSearchInput);
|
|
1222
|
+
return {
|
|
1223
|
+
...newState,
|
|
1224
|
+
focusVersion: state.focusVersion + 1
|
|
1225
|
+
};
|
|
1221
1226
|
};
|
|
1222
1227
|
|
|
1223
1228
|
const setSelections = async (editorUid, selections) => {
|