Skip to content

SelectMultiple - pre selected object options not working #6395

@jcfilben

Description

@jcfilben

Expected Behavior

Options in value should should show as selected

Actual Behavior

In SelectMultiple if options is an array of objects and value is initially set to one of the options, the option will not show as selected when the drop is open

URL, screen shot, or Codepen exhibiting the issue

https://codesandbox.io/s/grommet-v2-template-forked-ftppqe?file=/index.js

Steps to Reproduce

  1. Go to codesandbox link above
  2. Open the drop and see that the 'xyz' option is not checked

Your Environment

  • Grommet version: codesandbox example used v2.26.0 of grommet but I also confirmed this behavior on the stable branch
  • Browser Name and version:
  • Operating System and version (desktop or mobile):

Metadata

Metadata

Assignees

Labels

bugissue that does not match design or documentation and requires code changes to address

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions