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

Select with multiple on search clearing selected options #6146

Closed
jcfilben opened this issue May 23, 2022 · 1 comment
Closed

Select with multiple on search clearing selected options #6146

jcfilben opened this issue May 23, 2022 · 1 comment
Labels
bug issue that does not match design or documentation and requires code changes to address

Comments

@jcfilben
Copy link
Collaborator

Expected Behavior

After search, previously selected options should not be cleared

Actual Behavior

If you select an option and then search, select a second option and then deselect the second option, when you open the drop again your previously selected options will be cleared.

URL, screen shot, or Codepen exhibiting the issue

This can be reproduced on the Select/Search story

May-23-2022.12-13-00.mp4

Steps to Reproduce

https://storybook.grommet.io/?path=/story/input-select-search--search

  1. Select an option (ex. option 3)
  2. Search for a different option (ex. option 5)
  3. Select the option that was search for
  4. Unselect the option that was searched for
  5. Close the drop and reopen it. No options will be selected. The correct behavior should be that our original option is still shown as selected (option 3).

Your Environment

  • Grommet version: v2.23.0
  • Browser Name and version: chrome
  • Operating System and version (desktop or mobile):
@jcfilben jcfilben added the bug issue that does not match design or documentation and requires code changes to address label May 23, 2022
@jcfilben
Copy link
Collaborator Author

Fixed in #6147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue that does not match design or documentation and requires code changes to address
Projects
None yet
Development

No branches or pull requests

1 participant