fix
This commit is contained in:
@@ -3859,21 +3859,19 @@ const AppLayout = () => {
|
|||||||
nextSelectionKeys = filtered;
|
nextSelectionKeys = filtered;
|
||||||
return filtered;
|
return filtered;
|
||||||
}
|
}
|
||||||
targetKey = resultKeys[0] || null;
|
targetKey = null;
|
||||||
nextSelectionKeys = targetKey ? [targetKey] : [];
|
nextSelectionKeys = [];
|
||||||
return nextSelectionKeys;
|
return [];
|
||||||
});
|
});
|
||||||
|
|
||||||
selectionOrderRef.current = nextSelectionKeys;
|
selectionOrderRef.current = nextSelectionKeys;
|
||||||
setSelectionOrder(nextSelectionKeys);
|
setSelectionOrder(nextSelectionKeys);
|
||||||
|
|
||||||
const targetDocId = targetKey ? getRowId(targetKey) : null;
|
|
||||||
|
|
||||||
setFocusedDocumentId((previous) => {
|
setFocusedDocumentId((previous) => {
|
||||||
if (previous && resultKeys.includes(resolveDocumentRowKey(previous))) {
|
if (previous && resultKeys.includes(resolveDocumentRowKey(previous))) {
|
||||||
return previous;
|
return previous;
|
||||||
}
|
}
|
||||||
return targetDocId;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
selectionAnchorRef.current = targetKey;
|
selectionAnchorRef.current = targetKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user