'click' Trigger doesn't hide pop up when user clicks on an iframe in the page
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
先檢視 pull request #96,然後使用帶有 trigger={['click']} 的 Ant Design Dropdown,以及佔據頁面大部分區域的 iframe 重現問題。確認點擊或輕觸 iframe 會關閉彈出視窗,符合現有的 contextMenu 行為。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- TypeScript
- 星號
- 391
- 分支
- 246
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-component/trigger 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
react-component/trigger#593 · 1 個 reaction ·
-
Does not work when rendered inside an iframe可能已有人在做 @PinkChampagne17 於 125 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 58/100
react-component/trigger#623 ·
-
useAlign.js: inline style reset to 0 is silently overridden under prefers-reduced-motion CSS (CSSTransition interpolation)可能已有人在做 @baofuen 於 84 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 65/100
react-component/trigger#618 · 1 則留言 ·
-
`collectScroller` is not working as expected when the element is in shadow DOM可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 42/100
react-component/trigger#555 ·
-
難度 3/5 1-2 天 新手友好度 55/100
react-component/trigger#550 · 1 則留言 ·
查看 react-component/trigger 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
AOSSIE-Org/DebateAI#611 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
openzim/mwoffliner#2933 ·
維護者通常 1 天內回覆
-
Use the README category name for website links and submissions可能已有人在做 @dajiaohuang 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
birobirobiro/awesome-shadcn-ui#647 ·
維護者通常 2 天內回覆
-
Twake Drive picker: closePicker() never destroys the intent (stop() is on the promise returned by start(), not by create())可能已有人在做 @chibenwa 今天認領。 未關閉claude
難度 2/5 1-3 小時 新手友好度 84/100
linagora/twake-calendar-frontend#1498 · 1 則留言 ·
維護者通常 1 天內回覆
-
check:passed streams:add
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆