v-movable icon indicating copy to clipboard operation
v-movable copied to clipboard

Button Inside Movable

Open Brett-Riverboat opened this issue 4 years ago • 1 comments

Is there a way to place a button on a movable that calls a method in your Vue component? I tried but the button just drags the component.

Here is a simple example: https://codesandbox.io/s/zealous-waterfall-ewln2?file=/src/App.vue

Brett-Riverboat avatar Feb 04 '21 15:02 Brett-Riverboat

Add the following attribute to your button: move-disabled="true". This will prevent the click event on the button from being picked up by the movable lib.

<button move-disabled="true" @click="doSomething"></i>

jeroendk avatar Feb 26 '21 14:02 jeroendk