primeng
primeng copied to clipboard
MegaMenu: aria-hidden throws console error
Describe the bug
When resizing a page with a PrimeNG MegaMenu and then clicking on the MegaMenu the following error is displayed in the console:
This error can be reproduced using the PrimeNG MegaMenu demo.
The following video demonstrates the issue:
https://github.com/user-attachments/assets/fb1fcd7f-e350-4cc7-8c93-b8ce238a217f
Environment
macOS
Reproducer
https://primeng.org/megamenu
Angular version
18
PrimeNG version
17.8.9
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.20.3
Browser(s)
safari and chrome
Steps to reproduce the behavior
- Open the Browser's console
- Go to the PrimeNG MegaMenu demo: https://primeng.org/megamenu
- Resize the page (increase the size)
- Click on a MegaMenu option
- Error is displayed in the Browser's console
Expected behavior
No errors should be displayed in the console