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

未关闭
#8,407 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Coderxrohan 已经在做这个了。

开始于 2026年1月3日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react
领域
frontend

调研方向

从使用 PrimeReact 10.9.7 的链接 StackBlitz reproducer 开始,然后跟踪 Sidebar 和 dropdown 的交互行为。重现每条列出的点击路径,并检查非模态 Sidebar 如何处理这些事件;完成标准是 Sidebar 在切换、筛选和选择项目时保持打开状态。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
CSS
星标
8.3k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

primefaces/primereact 的其他 Issue

查看 primefaces/primereact 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。