Skip to content
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

Fixing SidebarNavItem to rerender when url changes #1638

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

aleksfront
Copy link
Contributor

The problem is happening when user changing namespace - sidebar items gets collapsed:
Dec-03-2020 14-21-34

Changed url parameter makes sidebar item to rerender and lose it's expanded/collapsed state.

This PR removes search and hash parts from url and passes only pathname to id.

Dec-03-2020 14-22-28

Signed-off-by: Alex Andreev alex.andreev.email@gmail.com

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront added bug Something isn't working area/ui labels Dec 3, 2020
@aleksfront aleksfront added this to the 4.0.0 milestone Dec 3, 2020
@aleksfront aleksfront requested a review from a team December 3, 2020 11:25
@Nokel81 Nokel81 requested a review from a team December 3, 2020 13:50
Copy link
Contributor

@jim-docker jim-docker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, LGTM

@aleksfront aleksfront merged commit afc4ca0 into master Dec 4, 2020
@aleksfront aleksfront deleted the fix/collapse-sidebar-items-on-ns-change branch December 4, 2020 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants