Skip to content

fix useMenu selected key issue - #1435

Merged
omeraplak merged 1 commit into
masterfrom
fix-use-menu-selected-key
Jan 14, 2022
Merged

fix useMenu selected key issue#1435
omeraplak merged 1 commit into
masterfrom
fix-use-menu-selected-key

Conversation

@omeraplak

@omeraplak omeraplak commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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