streamich/react-use
Auf GitHub ansehenuseEnsuredForwardedRef not working with callback refs
Open
#805 geöffnet am 26. Nov. 2019
bughelp wanted
Repository-Metriken
- Stars
- (43.979 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 1743T 9h) (1 gemergte PR in 30 T)
Beschreibung
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.