[React]: isSidenavExpanded prop passed to Link component throws React warning #4348
Closed
Description
What package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
For the SideNavLink
component in UIShell, a React warning is emitted to the console as an error when the SideNav
prop expanded
is true
. The isSideNavExpanded
prop in SideNavLink
is passed to the Link
component. Because it is not a valid DOM attribute, React throws a warning.
This isn't a functional bug; rather, the aim is to remove the React warning.
Omitting passing the isSideNavExpanded
prop to the Link
component would eliminate the error.
Steps to reproduce the issue
- Visit Reduced Test case in CodeSandbox
- Open the console
- React warning is printed in the console as an error
Activity