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.

貢獻者指南