streamich/react-use

useEnsuredForwardedRef not working with callback refs

Open

#805 创建于 2019年11月26日

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

描述

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.

贡献者指南

useEnsuredForwardedRef not working with callback refs · streamich/react-use#805 | Good First Issue