vue.js - vue draggable almost works -


i using vue draggable. in example trying drag html element specific class.

<draggable :list="list" class="dragarea" :options="{draggable:'.dragg-me'}">   <div class="draggable" v-for="element in list">     <div class="dragg-me">dragg me</div>     <div class="element">       {{element.name}}     </div>   </div> </draggable> 

here full example.

i need able drag div dragg-me class, not working. nothing happens when that. if omit :options="{draggable:'.dragg-me'}" or if set

draggable:'.draggable' 

then of course works again.

is possible working way to?

use handle, documented here.

<draggable :list="list" class="dragarea" :options="{handle:'.dragg-me'}"> 

here fiddle updated.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -