Sortable: Works intermittently on Firefox

Created on 11 Jan 2018  路  14Comments  路  Source: SortableJS/Sortable

Firefox: 57.0.4
sortablejs: 1.7.0


Issue: Using Firefox, dragging of any kind will intermittently stop working between reloads.

To replicate:

  1. Using updated Firefox, visit the Sortable demo page and try to sort any list on page.
  2. If it works as expected, reload
  3. Repeat until you cannot sort the lists (usually takes less than 5 reloads)

Other: So far, it works flawlessly on Chrome.

Edit: Video of this behavior: https://gfycat.com/LightheartedTotalKodiakbear

firefox cannot-reproduce

Most helpful comment

Same issue for me on Firefox 58 and also 59 beta version. Thankfully the fallback method does work so this is my workraound for now

var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;

new Sortable(el, {
  forceFallback: isFirefox
})

All 14 comments

@RubaXa can you confirm if this will be fixed or not? We really love this library, but we cannot alienate Firefox users.

same issue

same

same here

I'm experiencing the same issue; however, reloading the page does _not_ fix it for me. On subsequent reloads the dragging functionality will be broken, until I close the tab and open the page up in a new one.

Firefox 59.0b5 (64-bit)
macOS 10.13.2

Same issue here, in fact not working at all in firefox, Works in Chrome, IE11 and Edge. Using VueDraggable.

Same issue. Does not Drag and Drop with Firefox. Anyone have a fix?

I have tried to reproduce this issue on FF 58.0.2 and it's working fine. Could it have been a Firefox bug?

I am having issues on Firefox 59.0b12 (dev edition)

Same issue for me on Firefox 58 and also 59 beta version. Thankfully the fallback method does work so this is my workraound for now

var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;

new Sortable(el, {
  forceFallback: isFirefox
})

Not sure if this is related, but for me it works reliably on FF 58.0.2, until I enter responsive-design mode (Tools > Web Developer > Responsive Design Mode), and then it consistently stops working.

If I enable touch simulation in responsive design mode, or exit the mode, then it starts working again.

It seems like this has been resolved in Firefox 61.

Mmm I don't see it as resolved with FF 65 and latest Sortable 1.8.3.

Any tips on workarounds with Sortable? forceFallback: true does not have any effect for me

Hi,
I was experiencing the same issue. I found that on SO: https://stackoverflow.com/a/19055350/1411105. That solved the issue.

Code example:

this.sortablejsOptions = {
   onEnd: (event: any) => {
      this.onDragEnd(event);
   },
   setData: (dataTransfer: DataTransfer, draggedElement: HTMLElement) => {
      dataTransfer.setData('foo', 'bar'); // required by Firefox in order to DnD work: https://stackoverflow.com/a/19055350/1411105
      }
    };
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rakeshrockb picture rakeshrockb  路  3Comments

kaermomo picture kaermomo  路  3Comments

garygreen picture garygreen  路  3Comments

kevinvanmierlo picture kevinvanmierlo  路  3Comments

benfoster picture benfoster  路  3Comments