Skip to content

ComboBox defaultItems is ignored #182

@seanrcollings

Description

@seanrcollings

When using defaultItems the ComboBox doesn't ever render it's dropdown

export default function Example() {
  const items = [
    {
      id: 1,
      name: "Item 1",
    },
    {
      id: 2,
      name: "Item 2",
    },
    {
      id: 3,
      name: "Item 3",
    },
  ];


  return (
    <ComboBox defaultItems={items} menuTrigger="focus">
      {({ id, name }) => <Item id={id}>{name}</Item>}
    </ComboBox>
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    elementsIssues related To Atomic Elements

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions