Bug description
After using the search field and deleting the value after it I can only see values corresponding to the latest search. I have to type something for example push space and delete it after to see all the options again.
How to reproduce the bug
- Make a dashboard with value filters
- Type in something (for example if u have values A1,A2, B1,B2 then type A), now you only see 2 values and u choose 1 (also if you just search for something, and click out of the box the filter box still refreshes that there are only two values and the same problem happens)
- Delete the value u have chosen (either with clicking on x or with backspace)
- Now u can still only see that there are 2 values to choose from which are A1 and A2
- If you push space or type any character and delete it after you can see all the values
Screenshots/recordings
No response
Superset version
3.1.2
Python version
I don't know
Node version
I don't know
Browser
Firefox
Additional context
No response
Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: rusackas
I think @michael-s-molina and @geido know this component best and might have pointers on how to clear/reset the search result when clearing the (last?) selected item. I assume this should be cleared when removing ANY selected item, not just the last one.
Comment From: michael-s-molina
Hi @PowerDinosaur. I was not able to reproduce the error in 3.1.2 and 4.0.0. Am I missing any step?
https://github.com/apache/superset/assets/70410625/7b7411cd-59c8-4ec8-99d0-3d5d65aefd28
Are you able to reproduce the error using the test environment for 4.0.0?
Comment From: hk-the-analyst
hi @michael-s-molina This can be reproduced when u select Dynamically search all filter values toggle in Add or Deleted Filter
Comment From: yaronshanisima
Thanks @michael-s-molina!
I managed to repreduce the issue with 4.0.0.
Seems like very similar issue - you change 1 filter and the other filter stuck with the old value while not relevant any more.
Attached a video: https://youtu.be/GUr0WD_qL1o
Thanks!
Comment From: geido
Thanks for providing the video @yaronshanisima
Comment From: rusackas
Is this still happening in 4.1.1/5.0.0rc1?
Comment From: rusackas
Still wondering if this is happening on master
/4.1.2/5.0.0rc3.