@lvce-editor/explorer-view 7.30.4 → 7.30.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.
|
@@ -3971,7 +3971,7 @@ const wrapListItemCommandInternal = (fn, queued) => {
|
|
|
3971
3971
|
const intermediate = get(id);
|
|
3972
3972
|
set(id, intermediate.oldState, updatedState, intermediate.scheduledState);
|
|
3973
3973
|
if (hasSameVisibleExplorerItemInputs(intermediate.newState, updatedState)) {
|
|
3974
|
-
if (updatedState.inputSource === User || !hasSameDragDataInputs(intermediate.newState, updatedState)) {
|
|
3974
|
+
if (updatedState.inputSource === User || !hasSameDragDataInputs(intermediate.newState, updatedState) || intermediate.newState.focus !== updatedState.focus || intermediate.newState.focused !== updatedState.focused || intermediate.newState.version !== updatedState.version) {
|
|
3975
3975
|
set(id, intermediate.oldState, updatedState);
|
|
3976
3976
|
}
|
|
3977
3977
|
return {
|
|
@@ -4127,7 +4127,7 @@ const isEqual$5 = (oldState, newState) => {
|
|
|
4127
4127
|
};
|
|
4128
4128
|
|
|
4129
4129
|
const isEqual$4 = (oldState, newState) => {
|
|
4130
|
-
return oldState.focused === newState.focused && oldState.focus === newState.focus;
|
|
4130
|
+
return oldState.focused === newState.focused && oldState.focus === newState.focus && oldState.version === newState.version;
|
|
4131
4131
|
};
|
|
4132
4132
|
|
|
4133
4133
|
const isEqual$3 = (oldState, newState) => {
|
|
@@ -4302,16 +4302,18 @@ const expandRecursively = async state => {
|
|
|
4302
4302
|
|
|
4303
4303
|
const focus = state => {
|
|
4304
4304
|
const {
|
|
4305
|
+
editingIndex,
|
|
4305
4306
|
focus,
|
|
4306
|
-
|
|
4307
|
+
version
|
|
4307
4308
|
} = state;
|
|
4308
|
-
if (
|
|
4309
|
+
if (editingIndex !== -1) {
|
|
4309
4310
|
return state;
|
|
4310
4311
|
}
|
|
4311
4312
|
return {
|
|
4312
4313
|
...state,
|
|
4313
4314
|
focus: focus || List,
|
|
4314
|
-
focused: true
|
|
4315
|
+
focused: true,
|
|
4316
|
+
version: version + 1
|
|
4315
4317
|
};
|
|
4316
4318
|
};
|
|
4317
4319
|
|