streamich/react-use

useEnsuredForwardedRef not working with callback refs

Open

#805 创建于 2019年11月26日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)TypeScript (3,273 fork)batch import
bughelp wanted

仓库指标

Star
 (43,979 star)
PR 合并指标
 (平均合并 1743天 9小时) (30 天内合并 1 个 PR)

描述

If the forwarded ref is a callback ref the callback isn't called properly.

useEnsuredForwardedRef should check if the passed ref is a callback-function and if that's the case call it to set the ref.

贡献者指南