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

Menu: Keyboard navigation broken when using custom template #15794

Closed
deathpat opened this issue Jun 5, 2024 · 0 comments · Fixed by #15815
Closed

Menu: Keyboard navigation broken when using custom template #15794

deathpat opened this issue Jun 5, 2024 · 0 comments · Fixed by #15815
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@deathpat
Copy link

deathpat commented Jun 5, 2024

Describe the bug

Hello,

when using a custom template to display menu items for a p-menu, selecting an element using the keyboard does not work anymore (the command is not triggered). Only mouse selection works.

Environment

Reproducer

https://stackblitz.com/edit/github-op1f8a?file=src%2Fapp%2Fapp.component.html

Angular version

17.3.10

PrimeNG version

17.18.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

not relevant

Browser(s)

No response

Steps to reproduce the behavior

  1. navigate the menu with the keyboard up and down arrows
  2. try to select an item pressing enter

Expected behavior

the command of the item should be triggered

@deathpat deathpat added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 5, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.1 milestone Jun 13, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 13, 2024
@cetincakiroglu cetincakiroglu added LTS-PORTABLE Issue's fix will be ported to supported LTS versions Component: Accessibility Issue or pull request is related to WCAG or ARIA labels Jun 13, 2024
@mehmetcetin01140 mehmetcetin01140 added LTS-16-PORTABLE Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Component: Accessibility Issue or pull request is related to WCAG or ARIA LTS-PORTABLE Issue's fix will be ported to supported LTS versions labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants