streamich/react-use

useEnsuredForwardedRef not working with callback refs

开放

#805 创建于 2019年11月26日

 (2 条评论) (1 个反应) (0 位负责人)TypeScript (3,273 个派生)batch import
bughelp wanted

仓库指标

星标
 (43,979 个星标)
PR 合并指标
 (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.

贡献者指南