Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterLiveSearch does not clear its value #9106

Closed
djhi opened this issue Jul 18, 2023 · 0 comments · Fixed by #9149
Closed

FilterLiveSearch does not clear its value #9106

djhi opened this issue Jul 18, 2023 · 0 comments · Fixed by #9149
Assignees
Labels

Comments

@djhi
Copy link
Contributor

djhi commented Jul 18, 2023

What you were expecting:
Clearing the FilterLiveSearch input using its clear button actually clears the value

What happened instead:
It clears but immediately reapply the value.

Steps to reproduce:

  1. Enter Fusce in the live search input
  2. Click the only item of the list
  3. Go back to the list (using sidebar menu but it would be the same using browser history)
  4. Try clearing the live search input using the clear icon

Related code:
https://stackblitz.com/edit/github-zb5dpt

Environment

  • React-admin version: 4.12.1
  • Last version that did not exhibit the issue (if applicable):
  • React version: 17
  • Browser:
  • Stack trace (in case of a JS error):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants