CRM demo unable to clear filter form when clicking ⦻ in Firefox
See original GitHub issueWhat you were expecting:
I expect clicking the cross button in filter form should clear the filter
What happened instead:
Clicking on the cross button in filter form does not clear the filter Only clicking on the filter item text clears the filter This only happens in Firefox (Chrome and Edge seems work fine)
Steps to reproduce:
Go to https://marmelab.com/react-admin-crm/#/contacts?filter={"sales_id"%3A0%2C"status"%3A"cold"%2C"last_seen_lte"%3A"2022-04-01T05%3A00%3A00.000Z"}&order=DESC&page=1&perPage=25&sort=last_seen
Click on the cross button next to Before this moth
and the filter cannot be cleared. (Only Firefox has this issue)
Click on the Before this moth
text clears the filter.
Other information:
Environment
- React-admin version: 4.0.0
- Last version that did not exhibit the issue (if applicable):
- React version:
- Browser: Firefox 99
- Stack trace (in case of a JS error):
Issue Analytics
- State:
- Created a year ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
cannot clear quick filter search parameter in Thunderbird
I cannot clear the contents of the filter on my inbox. ... Try this: Help/Troubleshooting Information, click Open Folder to open the profile ......
Read more >Firefox "Clear Data..." selection box not working.
I'm simply trying to clear my browser cache, but not my cookies. My problem: (1) Click on the "triple bar" icon, top-right, to...
Read more >how do I uninstall firefox filter - Mozilla Support
Click the "firefox button "on top left, go to "addons" and find the FoxFilter addon. Next click the "disable" button (if you're not...
Read more >Google search filters not clickable | Firefox Support Forum
Since a few days, I cannot click on any search filters on a Google page. If I click on "Tools", the list of...
Read more >unable to select "clear history" - it's greyed out & unselectable
I am unable to select "clear history" - it's greyed out & unselectable on my laptop. It only happens on my laptop, but...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I still can’t figure out why I can’t reproduce on my end, even knowing where to click. Anyway, your analysis makes sense to me, so I approved your PR. Let’s just wait for @djhi to approve it as well 🙂
@smeng9 I believe this might be linked to the localstorage as well. The problem might come from the fact that this filter implies today’s date. The quick filter is only marked active if the filter currently applied is exactly the same. In your url, the date was a few days early, that’s why I think it is normal for the filter to be marked as inactive. The fact that is was active on your end might come from matching residual data. If you clear localstorage, refresh the webpage, and try pasting your original link again, I believe you will notice the same behaviour as me.