Skip to content

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

@rv97

Description

@rv97

Bug Description

When the ui5-menu menu or the sub-menu has menu items that are loaded dynamically after showing the busy indicator, the focus does not shift to the first element after the menu loads.

Video: https://sap-my.sharepoint.com/:v:/p/vignesh_r02/ER0q_uLNU6BAi_YC6vqG1XIBxyXKiXFaktR7ya0Dj_-ggw?e=tAbArb

Affected Component

ui5-menu, ui5-menu-item

Expected Behaviour

When i hit enter on a menu or sub-menu with dynamic menu items, after the busy indicator, the focus should go to the first element.

Isolated Example

https://sap-my.sharepoint.com/:v:/p/vignesh_r02/ER0q_uLNU6BAi_YC6vqG1XIBxyXKiXFaktR7ya0Dj_-ggw?e=tAbArb

Steps to Reproduce

This can be reproduced in the ui5-documentation itself.

  1. Hit tab and go to the menu with dynamic content
  2. Hit enter
  3. After the menu loads, the you can see the focus is not there for the first element
    ...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

1.14.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

SAP Labs

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions