streamich/react-use
useEnsuredForwardedRef not working with callback refs
Aberta
#805 aberto em 26 de nov. de 2019
bughelp wanted
Métricas do repositório
- Stars
- (43.979 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
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.