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.

貢獻者指南