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

MenuItem: Keyboard navigation breaks when using template #7505

Open
JolianGof opened this issue Dec 16, 2024 · 1 comment
Open

MenuItem: Keyboard navigation breaks when using template #7505

JolianGof opened this issue Dec 16, 2024 · 1 comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a defect related to a specific component.

Comments

@JolianGof
Copy link

JolianGof commented Dec 16, 2024

Describe the bug

I was facing a problem with MenuItem command not getting triggered by hitting the enter key when providing a template

But if I pass anything other than template it works

Reproducer

https://stackblitz.com/edit/xp3desv1-kjtkjrvh?file=src%2FApp.jsx

System Information

primereact 10.8.5

Steps to reproduce the behavior

  1. open stack blitz
  2. tab to the menuitem
  3. click on new using the enter key it will work
  4. click on the search using the enter key it won't work

Expected behavior

search menuitem should work when hitting the enter key

@JolianGof JolianGof added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 16, 2024
@JolianGof

This comment was marked as outdated.

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 3, 2025
@melloware melloware changed the title MenuItem : template not working when hitting enter key, only if template is provided MenuItem : Keyboard navigation breaks when using template Jan 3, 2025
@melloware melloware changed the title MenuItem : Keyboard navigation breaks when using template MenuItem: Keyboard navigation breaks when using template Jan 3, 2025
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 defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants