This commit is contained in:
2025-10-31 17:44:33 +01:00
parent 1fcd265eb9
commit c146084f75
+4 -6
View File
@@ -3859,21 +3859,19 @@ const AppLayout = () => {
nextSelectionKeys = filtered;
return filtered;
}
targetKey = resultKeys[0] || null;
nextSelectionKeys = targetKey ? [targetKey] : [];
return nextSelectionKeys;
targetKey = null;
nextSelectionKeys = [];
return [];
});
selectionOrderRef.current = nextSelectionKeys;
setSelectionOrder(nextSelectionKeys);
const targetDocId = targetKey ? getRowId(targetKey) : null;
setFocusedDocumentId((previous) => {
if (previous && resultKeys.includes(resolveDocumentRowKey(previous))) {
return previous;
}
return targetDocId;
return null;
});
selectionAnchorRef.current = targetKey;