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

<AutocompleteInput> clear button does not clear new choice #9993

Closed
adguernier opened this issue Jul 11, 2024 · 0 comments · Fixed by #10023
Closed

<AutocompleteInput> clear button does not clear new choice #9993

adguernier opened this issue Jul 11, 2024 · 0 comments · Fixed by #10023

Comments

@adguernier
Copy link
Contributor

What you were expecting:

When I use the <AutocompleteInput> component with the onCreate props, I expect the clear button clears the new choice.

What happened instead:

The clear button works the first time I fill the form with a new choice, but does not the next times.

Steps to reproduce:

  1. Navigate to this story
  2. Fill the input with a choice that does not exist
  3. Click the clear button -> it should delete the new choice
  4. Fill the input again with a choice that does not exist
  5. Click the clear button -> it should not delete the new choice
screencast.mp4

Environment

  • React-admin version: ^5.0.4
  • React version: ^18.3.1
  • Browser: Brave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant