feat: remove unused canvas focus request from tag interactions.

This commit is contained in:
2025-12-09 00:17:16 +01:00
parent 99fa12a1be
commit f3292211a8
3 changed files with 16 additions and 26 deletions
@@ -37,6 +37,9 @@ export const useDocumentsContextValues = (props: DocumentsPanelInnerProps) => {
toggleCorrespondent: toggleCorrespondentFilter,
} = useDocumentsFilter();
const scrollRef = useRef<HTMLElement | null>(null);
const suppressDocumentClickRef = useRef(false);
// Handlers
const tagHandlers = useTagInteractions({
onAssignTagToDocument: props.onDocumentTagAttach,
@@ -73,10 +76,6 @@ export const useDocumentsContextValues = (props: DocumentsPanelInnerProps) => {
selectedFolder,
]);
// Refs
const scrollRef = useRef<HTMLElement | null>(null);
const suppressDocumentClickRef = useRef(false);
const handleFolderClick = useCallback(
(folder: any, event: any) => {
if (!folder) {