anish2690 / vue-draggable-next

Vue 3 drag-and-drop component
https://vue-draggable-next.vercel.app
MIT License
504 stars 44 forks source link

Ts error when assiging class to `draggable` attribute #31

Closed LovelyAndy closed 2 years ago

LovelyAndy commented 2 years ago

Hello, I am getting a ts error on the draggable attribute (error shown below) and wondering what I can do here. I saw the draggable attribute on the Vue.Draggable library, but perhaps you just don't need it in your version? The elements are all still draggable so maybe I can go without it?

Any input would be greatly appreciated!

Type '".machine"' is not assignable to type 'Booleanish | undefined'.
draggable=".machine"

ts error: image

Section from the Vue.Draggable library using the draggable attribute:

image
anish2690 commented 2 years ago

@LovelyAndy draggable prop is not required, by default it is on list.