holiber / sl-vue-tree

Customizable draggable tree component for Vue.js
https://holiber.github.io/sl-vue-tree/
MIT License
345 stars 78 forks source link

Dragging throws TypeError: e.onDragendHandler is not a function #90

Open roger-perry-gmx opened 3 years ago

roger-perry-gmx commented 3 years ago

This occurs using sl-vue-tree in a .vue component. It seems to be triggered by having a item 'selected' within a sl-vue-tree row. Also, there is no onDragendHandler in sl-vue-tree.js.

christopherchristensen commented 3 years ago

I had this problem because I used the router-link component in the title-slot, which renders an anchor tag. The anchor tag is draggable per default, which conflicted with the dragging event of the sl-vue-tree. The solution in my case was to add draggable="false" to the router-link component.

roger-perry-gmx commented 3 years ago

thanks @christopherchristensen