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
If a column in the table contains null value at some rows and you try to do a case insensitive filtering like "ine foo', a javascript exception "Cannot read property 'toString' of null" exception" will occur. Apparently it is caused by the line "lhs.toString().toUpperCase()" of fnEval() method in relational.ts failed to check whether lhs (i.e. the cell value) is null or not.
The text was updated successfully, but these errors were encountered:
gvwilson
changed the title
[BUG] Dashtable case-insensitive filter causes exception when the column contains null value
Dashtable case-insensitive filter causes exception when the column contains null value
Aug 26, 2024
If a column in the table contains null value at some rows and you try to do a case insensitive filtering like "ine foo', a javascript exception "Cannot read property 'toString' of null" exception" will occur. Apparently it is caused by the line "lhs.toString().toUpperCase()" of fnEval() method in relational.ts failed to check whether lhs (i.e. the cell value) is null or not.
A sample app to reproduce the problem.
Run the app, in the 'city' column header of the table, type in 'ine foo' and hit enter, which should reproduce the problem.
I had a PR for fixing this bug for an old version of dash-table at https://github.com/plotly/dash-table/pull/935/files
Environment:
The text was updated successfully, but these errors were encountered: