fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user