You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
When client side pagination is enabled, the tooltip_conditional filter will cause "TypeError: Can not read property of undefined" exception when try to navigate to next page. It is fine on the first page though.
Run the program and try to navigate to the second page, you will see the error prompt by developer tool.
I did a bit debugging with Chrome developer tool. The exception is at this line.
More specifically, on the first time when this line is executed after navigating to the second page, it has row = 3, virtualized.offset.rows=0 and virtualized.data array containing only one row (i.e. the only row in the second page), which makes virtualized.data[row - virtualized.offset.rows] to access beyond the array tail and hence the exception.
I suspect the line should be changed to something like virtualized.data[row - virtualized.indicies[0] - virtualized.offset.rows], but I'm not familiar with the code base enough to tell whether this is a proper fix.
The text was updated successfully, but these errors were encountered:
xwk
changed the title
tooltip_conditional filter cause cause "TypeError: Can not read property of undefined" exception when client side pagination is enabled
tooltip_conditional filter cause "TypeError: Can not read property of undefined" exception when client side pagination is enabled
Jul 6, 2021
xwk
added a commit
to xwk/dash-table
that referenced
this issue
Jul 20, 2021
To fix the bug reported in plotly#917 tooltip_conditional filter cause "TypeError: Can not read property of undefined" exception when client side pagination is enabled
When client side pagination is enabled, the tooltip_conditional filter will cause "TypeError: Can not read property of undefined" exception when try to navigate to next page. It is fine on the first page though.
A sample example to reproduce the problem.
Test environment:
Run the program and try to navigate to the second page, you will see the error prompt by developer tool.
I did a bit debugging with Chrome developer tool. The exception is at this line.
More specifically, on the first time when this line is executed after navigating to the second page, it has
row
= 3,virtualized.offset.rows
=0 andvirtualized.data
array containing only one row (i.e. the only row in the second page), which makesvirtualized.data[row - virtualized.offset.rows]
to access beyond the array tail and hence the exception.I suspect the line should be changed to something like
virtualized.data[row - virtualized.indicies[0] - virtualized.offset.rows]
, but I'm not familiar with the code base enough to tell whether this is a proper fix.The text was updated successfully, but these errors were encountered: