facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

Cannot read property 'releaseMouseMoves' of undefined #433

Closed ajrouvoet closed 8 years ago

ajrouvoet commented 8 years ago

I get the following error in some cases:

Scrollbar.react.js:180 Uncaught TypeError: Cannot read property 'releaseMouseMoves' of undefined

The "when" of this error is rather difficult to capture exactly. I'll explain based on the use case. I have a layout that can be either in split screen or fullscreen. When in 'fullscreen', it just displays the table view. When in split-screen, it shows a table and something else in splitscreen (vertical).

Furthermore the error is correlated with changing the table content when we start with a table without a (vertical) scrollbar.

I've tested a whole bunch of things, but these seem the relevant cases. "(no) scrollbar" indicates whether the layout had a vertical scrollbar in the datatable. "split/full" indicates what layout we were using.

split + no scrollbar -> split + scrollbar = fine
full + no scrollbar -> split + scrollbar = error
split + no scrollbar -> full + scrollbar = error
full + no scrollbar -> full + scrollbar = error
split + no scrollbar -> split + no scrollbar = fine
full + no scrollbar -> split + no scrollbar = fine
split + no scrollbar -> full + no scrollbar = fine
full + no scrollbar -> full + no scrollbar = fine
* + scrollbar -> * = fine

It's quite mysterious to me, and except for the error the table seems to behave correctly.

(react: 0.14.8, fixed-data-table: 0.6.2, chromium, linux)

ajrouvoet commented 8 years ago

No longer occurs after updating several packages including react to ^15.0.0