OverlayPanel: Dismissable prop is disregarded when panel is visible

オープン
#8,487 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

OverlayPanel コンポーネントのエントリポイントから開始し、リンクされた StackBlitz の例で動作を再現します。パネルが表示されている間に dismissable prop がどのように読み取られるかを追跡し、その後、外側のクリックが現在の値を尊重すること、および dismissable が false のときに再現用コードが閉じなくなることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Status: Needs Triage
Describe the bug

Changing dismissable prop after OverlayPanel is visible, doesn't alter the behaviour.

Reproducer

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

System Information
System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 14.70 GB / 31.67 GB
  Binaries:
    Node: 24.6.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 4.9.2 - C:\Program Files\nodejs\yarn.CMD
    npm: 11.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 144.0.7559.97
    Edge: Chromium (142.0.3595.90)
    Firefox: 138.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    primereact: ^10.9.7 => 10.9.7
    react: ^19.2.3 => 19.2.3
    tailwindcss: ^4.1.18 => 4.1.18
Steps to reproduce the behavior
  1. Click "Open overlay"
  2. Click "Toggle dismissable" inside the overlay
  3. See that the dismissable state is changed to false
  4. Click outside the overlay
  5. See that the overlay closes
Expected behavior

Would expect OverlayPanel to use the current state of dismissable, to decide if it should close. This would align with they way closeOnEscape reacts.

主要言語
CSS
スター
8.3k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

primefaces/primereact のほかの issue

primefaces/primereact の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。