react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

AutocompleteArrayInput makes an empty chip when you click tab key, on blur action

Open sgonzaloc opened this issue 6 years ago • 2 comments

What you were expecting: When I use AutocompleteArrayInput if I wrote an option that is not in the choices, and then I click on tab key, an empty chip is added to the input. For example if I wrote the label someOptionNotIncludedInChoices, I would expect to have a chip with this label.

What happened instead: An empty chip is added.

Steps to reproduce: Just add AutocompleteArrayInput and write a choice not included in all choices

Here the snapshots:

  1. All choices allChoices

  2. The label that I wrote NotIncludedInChoices

  3. The empty field results after click on tab key emptyChipAfterTabKey

Environment

  • React-admin version: 2.9.9
  • React version: 16.8.4
  • Browser: 81.0.4044.138

sgonzaloc avatar May 13 '20 02:05 sgonzaloc

I can't reproduce it on 3.x, this was probably fixed long ago.

React-admin 2.9 is no longer maintained by the core team, so a fix for this will come from the community. We recommend that you upgrade to react-admin v3.

fzaninotto avatar May 13 '20 05:05 fzaninotto

This was fixed in version 3 years ago. I don't think it makes sense to maintain this one open for version 2. If you think this could still be helpful, please ask us to re-open it

WiXSL avatar Mar 24 '22 19:03 WiXSL