sl-vue-tree icon indicating copy to clipboard operation
sl-vue-tree copied to clipboard

Dragging throws TypeError: e.onDragendHandler is not a function

Open roger-perry-gmx opened this issue 4 years ago • 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.

roger-perry-gmx avatar Feb 13 '21 18:02 roger-perry-gmx

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.

christopherchristensen avatar Aug 24 '21 15:08 christopherchristensen

thanks @christopherchristensen

roger-perry-gmx avatar Aug 25 '21 18:08 roger-perry-gmx