geekhybrid / vue3-tree-vue

MIT License
63 stars 22 forks source link

Feature Request: Prop to disable drag/drop #24

Closed mrorabau closed 3 months ago

mrorabau commented 11 months ago

It is easy to make it not do anything when you drag/drop the order, however it might be better to disable it completely so the user doesn't think something is wrong with the interface.

ajmcgrail commented 4 months ago

I'm surprised this hasn't been closed- the only thing you need to do is to set the \@dropValidator prop to undefined as far as I can tell. Am I missing something, or was this just implemented after this issue was made?

geekhybrid commented 4 months ago

AFAIK, the drag/drop feature existed prior to this issue. I will look into this over the weekend. @ajmcgrail

geekhybrid commented 3 months ago

Fix now available in 2.0.11.

My understanding of this issue is that we do not even want to show the drag-and-drop effect if it is disabled. To achieve this DO NOT set the onDropValidator, or you may set it to undefined.