formkit / drag-and-drop

Home Page:https://drag-and-drop.formkit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

handleDragstart with dragHandle, emit drag without dragging

Jerd0 opened this issue · comments

if we have dragHandle, handleDragstart - is triggered if we try to drag element which is outside of the dragHandle class, but drag is not starting

https://stackblitz.com/edit/vitejs-vite-xghckt?file=src%2Fcomponents%2Ftest.vue

try to drag element by <div> with some number, not by <div>drag me</div> to reproduce

@Jerd0 Agreed! handleDragstart should only be invoked when dragging the dragHandle element. It fires when dragging any part of the child element.