-
Notifications
You must be signed in to change notification settings - Fork 523
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
Multiple Tabs Marked as Active in Navigation Bar When Switching Between Tabs #9637
Comments
if this issue is available, i would like to work on this |
@saikiranpatil do you sugget how you are planning to fix the issue. |
@bodhish I'm working on it 😀 |
This issue is not assigned to anyone yet! Can you assign it to me @bodhish |
I will not assign unless you explain how you are planing to solve it. |
@bodhish the issue is related to activeClass and exactActiveClass attributes of ActiveLink component of raviger's package present in src/components/ui/sidebar/nav-main.tsx.
The uses of both attributes are as follow -
Combining both will create a conflict between the matching of the routes, which is causing this issue. Also, the route of the resource page begins with '/resource' and the route of other pages begins with '/facility'. If a link.url matches both the start and the exact current path, both activeClass and exactActiveClass are applied. Proposed SolutionWe can change the path of resource page as '/facility/resource' or active the activeClass attribute only for '/resource' route. Below is the fixed version. Let me know if I can raise a PR for this if not done by anyone 😊 Screen.Recording.2025-01-03.055308.mp4 |
@bodhish already found the root cause and working on it I'm solving it using |
@JavidSumra the fix doesn't work. Also @manmeetnagii the solution you suggested will not work. |
@bodhish Sir, I have implemented a solution
|
Bug Description:
When navigating between tabs in the navigation bar, multiple tabs are displayed as active simultaneously, instead of only highlighting the currently selected tab.
Steps to Reproduce:
Expected Behavior:
Only the currently active tab should be highlighted in the navigation bar.
Similar issues is occurring in the organisation page
Screenshots:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: