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

Open
#8,407 5 comments 0 reactions 0 assignees View on GitHub

@Coderxrohan is already working on this.

Since Jan 3, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react
Domain
frontend

Research direction

Start with the linked StackBlitz reproducer using PrimeReact 10.9.7, then trace the Sidebar and dropdown interaction behavior. Reproduce each listed click path and inspect how the non-modal sidebar handles those events; done means the sidebar remains open for toggling, filtering, and selecting an item.

Written by the indexing model from the issue text.

Description

Type: Bug
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.

Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from primefaces/primereact

All issues in primefaces/primereact

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.