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

Feature Request: Prop to disable drag/drop

Open mrorabau opened this issue 1 year ago • 2 comments

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.

mrorabau avatar Nov 27 '23 19:11 mrorabau

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?

ajmcgrail avatar Jul 16 '24 02:07 ajmcgrail

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

geekhybrid avatar Jul 16 '24 16:07 geekhybrid

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.

geekhybrid avatar Aug 18 '24 09:08 geekhybrid