Skip to content

Sidebar: Interacting with dropdown inside non modal sidebar closes the sidebar #8407

@james-thomson

Description

@james-thomson

Describe the bug

I have a dropdown within a sidebar configured to be non modal. Clicking on the dropdown toggler, the filter input area or selecting an item from the list causes the sidebar to close.

Reproducer

https://stackblitz.com/edit/vitejs-vite-ym3uphv1?file=src%2FApp.tsx

System Information

primereact: 10.9.7

Steps to reproduce the behavior

  1. Click the "show sidebar" button.
    2a) Click the dropdown toggle button to expand the dropdown.
    2b) Click the foo text in the dropdown then click in the filter input area.
    2c) Click the foo text in the dropdown then click bar to select that value.
    The sidebar closes.

Expected behavior

The sidebar should not close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions