-
Notifications
You must be signed in to change notification settings - Fork 272
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(ui5-menu): provide a way to focus items on fetch #10210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add test.
packages/website/docs/_samples/main/Menu/DynamicallyAddedItems/main.js
Outdated
Show resolved
Hide resolved
packages/website/docs/_samples/main/Menu/DynamicallyAddedItems/sample.html
Outdated
Show resolved
Hide resolved
packages/website/docs/_samples/main/Menu/DynamicallyAddedItems/main.js
Outdated
Show resolved
Hide resolved
Still need to add test. |
🎉 This PR is included in version v2.5.0-rc.3 🎉 The release is available on v2.5.0-rc.3 Your semantic-release bot 📦🚀 |
We now provide an option to set the focus to the first item when a menu is opened.
To achieve that you have to call the focus method of either the Menu or MenuItem parenting the menu you're opening.
How To can be seen in the sample we're adding.
fixes: #7237