containsCurrentItem State Not Reset in NavList Component.
Description
When the navlist component includes a subnav and there is a current item within that subnav, the containsCurrentItem state is not being reset to false. As a result, the visual indication of the current item remains displayed until the component is fully re-rendered.
Steps to reproduce
- Add a
subnavwithin thenavlistcomponent. - Ensure there is a current item within the
subnav. - Observe that the
containsCurrentItemstate remainstrueeven after the current item is no longer relevant.
Version
36.24.0
Browser
Chrome
Hello @TylerJDev 👋 Would you be able to review the PR https://github.com/primer/react/pull/4722 that @Hanskrogh pushed? Thanks!!
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.
Closing as stale. Please comment back or reopen if this requires additional attention.