Skip to content

Bug - DropdownNext - throws error when onOpenChange not provided #8479

@dominik-petrik

Description

@dominik-petrik

Describe the problem
It should be possible not to pass onOpenChange prop to Dropdown since it is an optional prop. In contrast with this an error is thrown when onOpenChange is not passed to the Dropdown.

How do you reproduce the problem?
codesandbox - Press tab or escape key when dropdown toggle is focused.

Expected behavior
No error should be thrown when onOpenChange is not provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions