Tearsheet: Escape should only close the active topmost layer
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
Start from the Tearsheet and modal components that handle Escape-key events, then reproduce the nested-modal and stacked-Tearsheet cases described in the issue. Trace which layer receives the event and inspect existing tests around modal dismissal; done means Escape closes only the active topmost layer while underlying layers remain open.
索引モデルが issue の本文から書いたものです。
説明
Problem
When a Tearsheet opens another modal, such as a file-selection modal, pressing
Escape closes both the modal and the underlying Tearsheet.
This suggests that the Escape-key event is being handled by multiple layers rather
than only by the active topmost layer. With stacked Tearsheets, the same behavior
could dismiss multiple workflow levels with a single keypress and unexpectedly
discard in-progress work.
Steps to reproduce
-
Open a Tearsheet.
-
Open a modal or file-selection flow from within the Tearsheet.
-
Press
Escape. -
Observe that both the nested modal and the underlying Tearsheet close.
-
Repeat with multiple stacked Tearsheets and verify whether one
Escapedismisses more than the active layer.
Here I hit escape to cancel out of the modal but all views are closed:
Expected behavior
Pressing Escape should dismiss only the active topmost modal or Tearsheet.
Underlying layers should remain open, and the event should not continue to
trigger their close handlers.
Context
This was observed in
odh-dashboard#9589.
The follow-up discussion is
here.
Related stacked-modal accessibility work:
Jira Issue: PF-4706
- 主要言語
- TypeScript
- スター
- 10
- フォーク
- 40
- 平均マージ
- 23時間 23分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
patternfly/react-component-groups のほかの issue
-
SkeletonTable: add option to hide header skeleton rows対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
patternfly/react-component-groups#968 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
Tearsheet layout updates: Masthead coverage and inset token alignment対応中かも @GAUNSD が 6 日前に担当しました。 オープンPF Team
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
patternfly/react-component-groups#985 · コメント 1 件 · 担当者 1 名 ·
-
Pull in Modal animation support for Tearsheets対応中かも @thatblindgeye が 20 日前に担当しました。 オープンPF Team
patternfly/react-component-groups#979 · 担当者 1 名 ·
-
MissingPage: support multiple action buttons対応中かも @platex-rehor-bot が 41 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
patternfly/react-component-groups の issue をすべて見る
似ている issue
-
難易度 2/5 1時間未満 初心者へのやさしさ 85/100
capricorn86/happy-dom#2474 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JSerwatka/letterboxd-tweaks#81 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
siyuan-note/siyuan#20165 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
polkadot-js/phishing#5716 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
juice-shop/juice-shop#3662 ·
メンテナーはふだん 1 日以内に返信