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(ui5-menu): focus first element after adding new items #10005

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tsanislavgatev
Copy link
Contributor

to do decription.

fixes: #7237

@unazko unazko self-requested a review October 10, 2024 10:23
Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

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

The solution is working for the main menu. We'll need to fix it for the sub-menus as well.

@tsanislavgatev
Copy link
Contributor Author

The solution is working for the main menu. We'll need to fix it for the sub-menus as well.

That was left out during the initial discussion. But the same code was added to the menu item, so the sub menus are also handled.

Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

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

The solution works.
There are lint errors that needs to be fixed though.

packages/main/src/Menu.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui5-menu | Accessibility]: Focus not shifting to the first element when the menu has dynamic content
2 participants