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

MenuBar: Pressing Escape-Key in submenu moves focus to first menuitem #5316

Closed
ico85 opened this issue Feb 21, 2024 · 0 comments
Closed

MenuBar: Pressing Escape-Key in submenu moves focus to first menuitem #5316

ico85 opened this issue Feb 21, 2024 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@ico85
Copy link

ico85 commented Feb 21, 2024

Describe the bug

When a menuitem is focused and when you press ESC-Key it moves focus to first menuitem. It's especially problematic if focus in submenu. The focus should be set to parent menuitem. You can also reproduce that in the Demo: https://primevue.org/menubar/

Reproducer

https://stackblitz.com/edit/primevue-create-vue-issue-template-izcznw?file=src%2FApp.vue

PrimeVue version

3.48.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

Chrome 121.0.6167.184

Steps to reproduce the behavior

  1. In Desktop-View navigate with Arrow-Keys through the menuitems.
  2. Navigate into a submenu.
  3. Press ESC and notice the focus goes to first menuitem

Expected behavior

If focus is on submenu-item, ESC-Key should move focus to parent menuitem.

@ico85 ico85 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 21, 2024
@ico85 ico85 changed the title MenuBar: Escape-Key moves focus to first menuitem MenuBar: Pressing Escape-Key in submenu moves focus to first menuitem Feb 21, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.49.0 milestone Feb 22, 2024
@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 22, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Feb 22, 2024
tugcekucukoglu added a commit that referenced this issue Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants