DataTable the first used filter will not be displayed when changed
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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