holiber/sl-vue-tree

Dragging throws TypeError: e.onDragendHandler is not a function

roger-perry-gmx opened this issue · 2 comments

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.

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.