Multiple clickable elements with forwardRef
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
I've searched for months for a solution to this. forwardRef only takes one ref, and that ref is assigned to the element you want to engage from parent. This feature is very limited.
Is there a way to forward multiple refs? I've searched in react docs and stackoverflow, haven't found any solutions.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看 React 文档以及 issue 中描述的 forwardRef 行为。确定该请求是为了澄清文档还是要更改 React API,然后定义多个 ref 的预期用例和验收标准;未指定文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100