Skip to content

Commit 9041729

Browse files
authored
Fix cleanup on merging drag and drop groups (#2935)
1 parent 4aa0958 commit 9041729

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webview/src/shared/components/dragDrop/DragDropContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ export const DragDropContainer: React.FC<DragDropContainerProps> = ({
113113
const dispatch = useDispatch()
114114

115115
const cleanup = useCallback(() => {
116+
immediateDragLeave()
117+
116118
if (pickedUp.current) {
117-
immediateDragLeave()
118119
setDraggedOverId('')
119120
setDraggedId('')
120121
setDirection(defaultDragEnterDirection)

0 commit comments

Comments
 (0)