Wrong typing of getPopupContainer
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从 src/index.tsx 开始,阅读第 572-590 行附近的 attachParent 以及第 75 行附近的 getPopupContainer 类型。确认当父级尚未准备好时 runtime 如何处理 falsy 值,然后让严格类型与该行为保持一致;当 TypeScript 定义接受有效的返回值时即表示完成。
由索引模型根据 Issue 内容生成。
描述
By reviewing attachParent method:
https://github.com/react-component/trigger/blob/89eefdb148ee68e4bbfe5b5b2887ceaff6b2e42c/src/index.tsx#L572-L590
that means getPopupContainer is able to return falsy value exactly "in case parent not ready". but it is blocked by strict typings:
https://github.com/react-component/trigger/blob/89eefdb148ee68e4bbfe5b5b2887ceaff6b2e42c/src/index.tsx#L75
may I create PR? actually it is also existent in Tooltip where I came from initially...
- 主要语言
- TypeScript
- 星标
- 392
- 派生
- 250
- 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 ·
-
useAlign reuses a stale flip decision after the viewport changes (popup stays flipped until reopen)可能已有人在做 @SXongin 于 34 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
react-component/trigger#651 ·
-
Does not work when rendered inside an iframe可能已有人在做 @PinkChampagne17 于 186 天前认领。 未关闭
难度 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 于 144 天前认领。 未关闭
难度 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 ·
查看 react-component/trigger 的全部 Issue
相似的 Issue
-
dependencies effort: small good first issue priority: low
难度 1/5 1-3 小时 新手友好度 88/100
TMHSDigital/screencast-mcp#509 ·
维护者通常 1 天内回复
-
from-review tech-debt testing
难度 2/5 1-3 小时 新手友好度 82/100
blamechris/chroxy#9520 ·
维护者通常 1 天内回复
-
area:web complexity:S priority:P2 type:chore
难度 2/5 1-3 小时 新手友好度 84/100
nahuelcostac/agent-hub#104 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
snaglet-org/snaglet#78 ·
维护者通常 1 天内回复
-
agent/guide documentation help wanted stage/010-actionable
难度 1/5 1 小时以内 新手友好度 82/100
kubestellar/console-marketplace#1101 ·
维护者通常 1 天内回复