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

ContextMenu, Dock: aria-hidden throws console error #16397

Closed
Dive576 opened this issue Sep 17, 2024 · 0 comments · Fixed by #16398
Closed

ContextMenu, Dock: aria-hidden throws console error #16397

Dive576 opened this issue Sep 17, 2024 · 0 comments · Fixed by #16398
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Dive576
Copy link
Contributor

Dive576 commented Sep 17, 2024

Describe the bug

When clicking on a menu item in the ContextMenu and Dock components, the following error is displayed in the browser console:

Blocked aria-hidden on a element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.

Environment

This issue can be seen in the ContextMenu examples and the Dock examples.

Reproducer

No response

Angular version

18.0.1

PrimeNG version

17.18.10

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.8.0

Browser(s)

Chrome and Edge

Steps to reproduce the behavior

No response

Expected behavior

No errors should be displayed in the browser console.

@Dive576 Dive576 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 17, 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 Sep 26, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.11 milestone Sep 26, 2024
cetincakiroglu added a commit that referenced this issue Sep 26, 2024
Fixes #16397: Removed aria-hidden attribute from ContextMenu, Dock, and MegaMenu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants