plotly / plotly/dash

DataTable the first used filter will not be displayed when changed

Open
#2,492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug dash-data-table P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context
No need, can be recreated right from Dash tutorial here DataTable Filtering

Describe the bug
Only on a newly loaded site please!
in Advanced filter usage section, let's say you enter "> 10000000" without quotes (10 million) in pop column
The page is down by half, good, now copy the string "{pop} s> 10000000" without quotes
Switch to Write to filter_query option, and paste it in
Now if you increase or decrease the zeroes, the filter section on the table gets updated EXCEPT at 10 million!
The filtering still occurs (pages change), but it's not displayed in the data table filter zone

Expected behavior

a change in data table update filter_query, but a write in filter_query at that initial value does not update the table.

Screenshots

See for yourself
If you go to 100 million and go back to 10 million, filter still shows 100 million
If you go to 1 million and go back to 10 million, filter still shows 1 million

Basically, if you change the filter in datatable first, then change it from other controls, the filter in datatable will not update at the exact query you used in the datatable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the DataTable Filtering tutorial, especially the Advanced filter usage section. Compare the displayed filter state with filter_query after changing the initial query and returning to the same value. Done means the table's filter display stays synchronized with filter_query at every value.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.