fix tag dragging

This commit is contained in:
2025-12-08 12:30:44 +01:00
parent 608239e412
commit 44cf4603fe
3 changed files with 12 additions and 11 deletions
@@ -694,7 +694,7 @@ const useDocumentsWorkspace = ({
handleDocumentTagAttach,
handleDocumentTitleUpdate,
handleDocumentIssuedUpdate,
handleTagRemove,
handleDocumentTagDetach,
} = useDocumentMutations({
documentLookup,
folderLabelMap,
@@ -1003,7 +1003,7 @@ const useDocumentsWorkspace = ({
window.removeEventListener('dragend', handleTagDragEnd, true);
setTagRemovalCursor(false);
};
}, [handleTagRemove, setTagRemovalCursor]);
}, [handleDocumentTagDetach, setTagRemovalCursor]);
const {
@@ -1026,7 +1026,7 @@ const useDocumentsWorkspace = ({
handleDocumentTitleUpdate,
handleDocumentIssuedUpdate,
handleDocumentTagAdd,
handleTagRemove,
handleDocumentTagDetach,
ensureAssetUrl,
getAsset: getDocumentAsset,
correspondents,
@@ -1098,7 +1098,8 @@ const useDocumentsWorkspace = ({
activeTagFilters,
handleTagUpdate,
handleTagDelete,
handleDocumentTagDrop: handleDocumentTagAttach,
handleDocumentTagAttach,
handleDocumentTagDetach,
handleBulkTagAddFromDetail,
handleBulkTagRemoveFromDetail,
openTagsModal,