SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.58k stars 3.7k forks source link

Vue-draggable not working on firefox #1596

Open cooperfrench95 opened 5 years ago

cooperfrench95 commented 5 years ago

Problem:

We are using vue-draggable, the vue wrapper for this library which appears to be unmaintained.

The issue seems to be that the dragging is broken on firefox. draggable components work as expected, but we have a functional component with listeners attached that is not functioning correctly. The drag event is fired, but dragging does not take place - the drag event simply gets fired and then nothing happens.

The functional component in its parent component has an @drag listener, and inside the component we have:

return createElement(
            'div',
            {
                attrs: {
                    draggable: assign.hourState !== 'approved',
                    label: true,
                },
                on: {
                    click: listeners.click,
                    dragstart: listeners.drag,
                    contextmenu: listeners.context,
                },
                class: {
                    'user-chip': true,
                    noselect: true,
                    selected: isSelected(),
                    [color]: true,
                    locked: isLocked,
                },
            },

etc.

This works fine on Chrome.

owen-m1 commented 5 years ago

@cooperfrench95 Please create a JSBin so I can debug this