-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nav ref does not work. #4012
Comments
hmm, seems to be working fine in this example. Either way it's probably more consistent if |
Ok, I misdiagnosed slightly. The problem is that the ref gives me the AbstractNav component whereas I actually needed the |
Huh, I don't think there's any good reason we do that. Should we make |
Using ref on Nav does not work.
Nav forwards the ref here:
https://github.com/react-bootstrap/react-bootstrap/blob/master/src/Nav.js#L93
But AbstractNav does not and instead sets up its own ref
https://github.com/react-bootstrap/react-bootstrap/blob/master/src/AbstractNav.js#L129
So the ref set on Nav goes nowhere.
The text was updated successfully, but these errors were encountered: