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

fix useMenu selected key issue #1435

Merged
merged 1 commit into from
Jan 14, 2022
Merged

fix useMenu selected key issue #1435

merged 1 commit into from
Jan 14, 2022

Conversation

omeraplak
Copy link
Member

@omeraplak omeraplak commented Jan 14, 2022

Test me! 'MASTER'
Link to FIX-USE-MENU-SELECTED-KEY

Please provide enough information so that others can review your pull request:

The useMenu hook was returning the wrong selectedKey if I defined multiple resources with the same resource name.

Explain the details for making this change. What existing problem does the pull request solve?

Checking as strict instead of checking with startsWith

Closing issues

@refine-bot
Copy link
Contributor

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Sidebar menu does not indicate right item [BUG] useMenu returns selectedKey as "notfound"
4 participants