Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

do not start drag if dnd-nodrag && no dnd-handle #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions angular-drag-and-drop-lists.js
Original file line number Diff line number Diff line change
@@ -96,6 +96,7 @@

// Check whether the element is draggable, since dragstart might be triggered on a child.
if (element.attr('draggable') == 'false') return true;
if (element.attr('dnd-nodrag') !== undefined && !event._dndHandle) return false;

// Initialize global state.
dndState.isDragging = true;