streamich/react-use

useEnsuredForwardedRef not working with callback refs

オープン

#805 opened on 2019/11/26

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (3,273 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (43,979 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド