Skip to content

<Select/> base-select component is unresponsive when used inside a Drawer component #69

@WuChenDi

Description

@WuChenDi

Description

When using the base-select component (@base-ui-components/react/select) inside a Drawer component (from shadcn/ui), clicking the Select trigger has no response and the dropdown list does not open.
However, in the same scenario, the shadcn/ui Select component (which uses @radix-ui/react-select) works perfectly fine.

Steps to Reproduce

  1. Open the page containing the Drawer.
  2. Click the button to open the Drawer.
  3. Click on the base-select component located inside the Drawer.

Expected Behavior

Clicking the Select trigger should open the dropdown list.

Actual Behavior

Clicking the Select trigger has no effect; the component is unresponsive.

Reproduction Repository

🔗 https://github.com/cdLab996/reui-base-select-bug

Live Demo

🔗 https://reui-base-select-bug.vercel.app/

Additional Notes

  • The shadcn/ui Select component (based on Radix UI) works correctly in the exact same environment, suggesting a potential compatibility issue between base-ui and the event handling/focus trapping mechanism of the Drawer.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions