plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 72 forks source link

sorting on hidden column gives Error: column xxx not found #789

Open HausReport opened 4 years ago

HausReport commented 4 years ago

I have a (wide) datatable based on the datatable-interactive example. After tweaking versions I was able to get "table.hidden_columns=['salesScore','explorationScore'...." to work.

I also have a dropdown that passes complicated sort/filter queries to the datatable.

If I sort or filter on a column that's hidden, I get

    at http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:7:141442
    at http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:7:203234
    at http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:1:427
    at Object.t [as a] (http://127.0.0.1:8050/_dash-component-suites/dash_table/bundle.v4_7_0m1588867645.js:1:10036)
    at http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:7:140986
    at http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:7:141654
    at t.filterMap (http://127.0.0.1:8050/_dash-component-suites/dash_table/bundle.v4_7_0m1588867645.js:1:10342)
    at t.<anonymous> (http://127.0.0.1:8050/_dash-component-suites/dash_table/async-table.v4_7_0m1588696365.js:7:200057)
    at getStateFromUpdate (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1588706252.13.0.js:12450:37)
    at processUpdateQueue (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1588706252.13.0.js:12581:24)

If the column isn't hidden, it works dandy.

Any thoughts? Thanks! Using recent versions. Server apparently can't provide the absolute latest: dash~=1.12.0 dash-core-components~=1.10.0 dash-html-components~=1.0.3 dash-table~=4.7.0 dash-renderer~=1.4.1