I'm using Vue draggable with Sortable.js. Pretty cool library for dragging/reordering items on a list. I found a problem in it though, whenever I have a list of input elements and the text is longer than the input box, that specific input box does not drag and drop.
I've tried debugging it but couldn't find if the issue could be on the library or some input box event that I could override to fix it.
Here is a fiddle showing an example: https://jsfiddle.net/egmstvL7/
Snipped below. Any ideas?
var app = new Vue({
el: '#app',
data: {
myArray:["This one drags ok","This one too","Well, this one too","and this","Everything else drags except inputs that have string longer than the element size"],
message: 'Hello Vue!'
}
})
<script src="http://cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
<script src="http://cdn.jsdelivr.net/npm/sortablejs@1.8.4/Sortable.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.20.0/vuedraggable.umd.min.js"></script>
<div id="app">
{{ message }}
<draggable v-model="myArray" group="people" @start="drag=true" @end="drag=false">
<div v-for="element in myArray" :key="element.id">
<input type="text" v-model="element"></input>
</div>
</div>