OverlayPanel: After interaction two mouse clicks are needed to close dialog

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

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

評価

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

調査の方向性

まず、リンクされた StackBlitz の例での動作を再現し、その後、内部ボタンとのインタラクション後における OverlayPanel のエントリーポイントと外側クリックの処理を追跡します。ダイアログの外側への最初のクリックでダイアログが閉じ、既存のインタラクション動作が維持されれば完了です。

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

説明

Describe the bug

When a button inside an OverlayPanel is clicked, two clicks outside of the dialog are necessary to close the dialog. If no interaction inside the dialog has happened, the dialog can be closed with a single mouse click.

Reproducer

https://stackblitz.com/edit/kt8tihbc

System Information
System:
    OS: Linux 7.0 Fedora Linux 43 (Workstation Edition)
    CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12900K
    Memory: 66.42 GB / 125.46 GB
    Container: Yes
    Shell: 5.3.0 - /bin/bash
  Binaries:
    Node: 22.22.2 - /usr/bin/node
    Yarn: 4.15.0 - /usr/local/bin/yarn
    npm: 10.3.0 - /usr/local/bin/npm
    bun: 1.1.4 - /usr/local/bin/bun
  Browsers:
    Chrome: 148.0.7778.178
    Firefox: 151.0.1
    Firefox Developer Edition: 151.0.1
Steps to reproduce the behavior
  1. Open OverlayDialog
  2. Click a button inside the dialog, e.g. pagination button
  3. Click outside the dialog - the dialog should be closed but is not
  4. Click again outside the dialog - the dialog will be closed
Expected behavior

The dialog should be closed on the first click outside of the dialog.

主要言語
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 を短くまとめたダイジェスト。