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

Multiselect.Filterable not showing initiallySelectedItems #7047

Closed
2 tasks done
brittanykvanvig opened this issue Oct 14, 2020 · 4 comments
Closed
2 tasks done

Multiselect.Filterable not showing initiallySelectedItems #7047

brittanykvanvig opened this issue Oct 14, 2020 · 4 comments

Comments

@brittanykvanvig
Copy link

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

We are passing in initialSelectedItems to the component, and it doesn't always select the items correctly. The first time passing values works. The second time nothing is preselected (screenshots below). The third time, occasionally will show the 2nd option preselected, other times nothing is preselected like the second time.

Is this issue related to a specific component?

Yes - MultiSelect.Filterable

What did you expect to happen? What happened instead? What would you like to
see changed?

Expected when passing initialSelectedItems, those items are selected in the component.

What browser are you working in?

Chrome

What version of the Carbon Design System are you using?

7.16.0

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

IAM UI - no pressing dates.

Steps to reproduce the issue

  1. Step one
  2. Step two
  3. Step three
  4. etc.

Please create a reduced test case in CodeSandbox

Additional information

  • Screenshots or code

Screen Shot 2020-10-14 at 11 11 48 AM

Screen Shot 2020-10-14 at 11 10 34 AM

Screen Shot 2020-10-14 at 11 10 24 AM

  • Notes
@brittanykvanvig
Copy link
Author

please let me know if you need any more details or the codebox case and I can try to provide those.

@TannerS
Copy link
Contributor

TannerS commented Dec 11, 2020

I am having same issue

@emyarod
Copy link
Member

emyarod commented Apr 6, 2021

can you create a reduced test case in Code Sandbox for easier testing and debugging?

@emyarod
Copy link
Member

emyarod commented Apr 9, 2021

in the meantime I believe rendering the component with a key each time should resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

6 participants