Select component doesn't render in Portal
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先,在具有 z-index 和 overflow 约束的 modal 中重现 Select dropdown,然后查看 issue 中链接的 React createPortal 参考。完成的标准是:dropdown 在限制它的 DOM 树之外进行渲染,并且在报告中的 modal、表格和分层元素场景下仍可使用。
由索引模型根据 Issue 内容生成。
描述
The Select component, drop-down list doesn't render in a Portal causing issues with z-index and overflows when used inside pop-up modals.
https://react.dev/reference/react-dom/createPortal
By itself, on main page things mostly work, but with modals, tables and various elements that have z-index' set it causes issues.
React.createPortal exists for this to render list outside the dom-tree and have it properly overflow any element.
- 主要语言
- TypeScript
- 星标
- 940
- 派生
- 485
- 平均合并
- 8 小时 4 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/select 的其他 Issue
-
Select: custom `popupRender` content stays stale after the dropdown closes, with no way to opt out未关闭
难度 3/5 1-2 天 新手友好度 58/100
react-component/select#1261 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
react-component/select#1216 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
react-component/select#1159 ·
-
a11y 问题未关闭
难度 3/5 1-2 天 新手友好度 35/100
react-component/select#1087 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-component/select#1086 ·
查看 react-component/select 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
Chocobozzz/PeerTube#7901 ·
维护者通常 3 天内回复
-
area:tools bug has repro
难度 2/5 1-3 小时 新手友好度 86/100
anthropics/claude-code#113984 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
维护者通常 1 天内回复
-
area/web platform/windows type/bug version/v2
难度 2/5 1-3 小时 新手友好度 65/100
anomalyco/opencode#68237 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100