react-component / react-component/trigger
'click' Trigger doesn't hide pop up when user clicks on an iframe in the page
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 391
- フォーク
- 245
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Behaviour:
When using rc-trigger (eg. via Ant Design's Dropdown) with a click type of trigger, the popup will not be closed if a user clicks or taps on an iframe in the page.
Expected Behaviour:
When a user clicks or taps anywhere on the document or an iframe within the document, the popup will be closed. This works fine for contextMenu types of triggers.
Steps to Reproduce:
(Using Ant Design Dropdown)
- Render a view that contains a Dropdown (with
trigger={['click']}) and an iframe that takes up a large part of the screen - Open the Dropdown overlay (popup) by clicking on the Dropdown
- Click on the iFrame
- Outcome: the Dropdown popup will not close
I have submitted a PR to help with fixing this https://github.com/react-component/trigger/pull/96
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず pull request #96 を確認し、その後、trigger={['click']} を指定した Ant Design Dropdown と、ページの大部分を占める iframe を使って問題を再現します。iframe をクリックまたはタップするとポップアップが閉じ、既存の contextMenu の動作と一致することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100