frontend-collective / frontend-collective/react-sortable-tree

Randomly totally broken in Firefox

Open
#332 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

In Firefox, **sometimes**, react-sortable-tree can get into a totally locked up state. This means that:

1. Dragging doesn't work at all.
2. Visually it looks bad. Non dragged items are thought to be dragged, in the rowCancelPad state.
2. Some static nodes are thought to be 0.5 opacity nodes, like while dragging, but actually they are not dragged.
4. canDrop is actually not called.

The worst part of this is that **reloading the page doesn't solve this issue**. Once a page gets into this state, it'll stay this forever. The only fix is to **open a new tab and close the old one**.

I'm trying to make a reproducible case, but my code is basically node-renderer-default and tree-node-default simplified.

It happens more frequently if I'm clicking on an item quickly after page load.

![sortable](https://user-images.githubusercontent.com/494223/40919394-ade57884-6809-11e8-8642-bf2ad43935e5.gif)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.