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

Illegal invocation, requestAnimationTimeout when tree is creating scroll

Open
#293 2 comments 0 reactions 0 assignees View on GitHub
investigate possible bug (need more info)
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

I created a sortable tree and got the following error in the console when the tree is getting larger than div and creating a scroll:
```
Uncaught TypeError: Illegal invocation
at Object.requestAnimationTimeout (requestAnimationTimeout.js?ab56:34)
at Grid._debounceScrollEnded (Grid.js?0f6f:910)
at Grid.handleScrollEvent (Grid.js?0f6f:208)
at Grid._this._onScroll (Grid.js?0f6f:133)
at HTMLUnknownElement.callCallback (react-dom.development.js?cada:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js?cada:581)
at Object.invokeGuardedCallback (react-dom.development.js?cada:438)
at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js?cada:452)
at executeDispatch (react-dom.development.js?cada:836)
at executeDispatchesInOrder (react-dom.development.js?cada:858)

```
The tree works as intended however.
Tried to replicate this in the sandbox but couldn't. Using react and react-dom 16.2 and sortable tree 2.1.

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.