streamich/react-use
Ver no GitHubuseEnsuredForwardedRef not working with callback refs
Open
#805 aberto em 26 de nov. de 2019
bughelp wanted
Métricas do repositório
- Stars
- (43.979 stars)
- Métricas de merge de PR
- (Mesclagem média 1743d 9h) (1 fundiu PR em 30d)
Description
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.