-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix(side nav): Pass ref to SideNavBase and write a test #1130
Conversation
7488238
to
8755744
Compare
8755744
to
85ab02b
Compare
85ab02b
to
5d451b2
Compare
@huwshimi I think in the last PR we forgot to add pass the ref further down to SideNavBase component, because in Anbox we were still getting the error This PR adds it, but it also presents with a type error. It works if I replace the generic type of Does this mean if we want to use ref, we have to use a base HTML element and that we can't pass a custom functional component in SideNavLink? |
5d451b2
to
0113ace
Compare
0113ace
to
a9cf968
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 1.2.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Done
SideNavigationBase
component. This fixes the "Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?" error while trying to access ref fromSideNavigationLink
component."QA
Storybook
To see rendered examples of all react-components, run:
QA in your project
from
react-components
run:Install the resulting tarball in your project with:
QA steps
Percy steps
Fixes
Fixes: WD-14589