New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error selecting cell in virtualized table #447
Comments
I just downgraded to dash_table==3.6.0 and do not see the error so it seems to be a regression introduced in 3.7.0. |
@kottmast Thanks for reporting this. Investigating. |
Having a similar error but for a different scenario. Assigning 'data' for a table based on selected_data of another table is throwing the same error. Like @kottmast has mentioned, it works fine when I downgraded to dash_table==3.6.0 |
Also error: ⛑️ |
@kottmast @wvwhome I've reproduced this issue in I've been unable to reproduce this example with
This seems to have been fixed by accident during the 3.x -> 4.0 refactoring. Can you confirm that the behavior is ok on your side with the latest version? I've opened a follow up issue here to add a test for this scenarios. |
Can we using any solutions like “disable select action” to fix this?Because of we just can't upgrade data-table version immediately,we need to keep use dash_table==3.7.0 for some feature we used. |
Tests have been added to make sure this behavior does not break in the future (#535). Upgrading to @action-ghost What 3.7.0 feature do you use that is not available in 4.x? The main issue raised in the 4.0 release was that we dropped the the hidden columns feature. That feature has been restructured into new props & UI, and is available again in 4.1 and above. |
Closing as fixed and tested. There is way to alter the behavior in 3.7.0 in such a way as to avoid the error. |
I think this could be a related issue - |
Hello, Could you please review and fix? |
Clicking to select a cell that is "below the fold" throws:
TypeError: Cannot read property '1' of undefined
, where '1' is the column index of the cell that is clicked.Simple example...
When the data is loaded and the table is displayed, clicking a cell highlights that cell to indicate it is selected. If you then scroll down and click to select a new cell, the error is thrown. Full stack trace:
The property it tries to read appears to be the column index of the cell that was clicked, ie. if you click in the 5th column the error will be "Cannot read property '4' of undefined".
After that the table either disappears or becomes unresponsive. I discovered this while trying to add a callback to do something with the selected cells. There is no apparent server-side error and the callback executes successfully, so the error seems to happen after the callback is executed.
Versions:
dash 0.43.0
dash-table 3.7.0
Chrome 74.0
The text was updated successfully, but these errors were encountered: