Skip to content

Commit f434341

Browse files
authored
Merge pull request #9493 from gitbutlerapp/fix-dragging-no-drag-handle
Fix draggable noDrag check for missing dragHandle
2 parents b49cc39 + 06b8176 commit f434341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src/lib/dragging/draggable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function setupDragHandlers(
6565
if (!opts || opts.disabled) return;
6666
e.stopPropagation();
6767

68-
if (dragHandle && dragHandle.dataset.noDrag !== undefined) {
68+
if (!dragHandle || dragHandle.dataset.noDrag !== undefined) {
6969
e.preventDefault();
7070
return false;
7171
}

0 commit comments

Comments
 (0)