-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
AutoComplete: aria-hidden="true"
on close chip console causes error
#6141
Comments
I’ve encountered this issue frequently in the Menu component. Clicking on any menu item triggers this error in the console, including in ContextMenu, Dock, Menu, Menubar, etc. The problem also exists on the PrimeVue website. Reproducer |
With no extensions enabled, I get this bug on the PrimeVue website, interacting with any menu component exactly like Chrysochrome describes, on both Chrome and Edge but not Firefox. Chrome Version 127.0.6533.89 (Official Build) (64-bit) |
I have had similar issues with the Menu components. Strangely enough, for me it only occured as soon as I selected any element with the devtools element picker and interacted with a menu after doing so. |
Can reproduce this as well on Edge (Version 127.0.2651.86). I also got this problem with primevue |
@tugcekucukoglu - I've created an example of this happening on Stackblitz, hopefully the issue can be fixed now. |
@tugcekucukoglu This seems to be a Chrome update, I've seen several other packages have that error now but it doesn't show on Firefox. For example: ant-design/ant-design#50170 |
A temporary fix I have found to work for myself const vFixAriaBug = {
mounted(el: HTMLElement) {
el.ariaHidden = null;
},
updated(el: HTMLElement) {
el.ariaHidden = null;
}
}; Then usable by <template>
<Menubar v-fix-aria-bug>
<template>
<router-link ...>
<a v-fix-aria-bug ...>
</router-link>
</template>
</Menubar>
</template> |
For those, using primevue v3 Source for menu item(with action
At least, the warning has gone in Chrome 127+ |
If anyone is using SplitButton you can also PT the attr to the tiered menu item:
|
Still cannot replicate AutoComplete issue. I could see that there is a problem with anchor tags. Please follow this issue for menus: #6269 |
Describe the bug
Using the AutoComplete component, I noticed we have some aria errors. I also noticed this exists on the primevue website:
Reproducer
https://primevue.org/autocomplete/
PrimeVue version
4.0.2
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Brave 1.68.131 (Chromium: 127.0.6533.73)
Steps to reproduce the behavior
Use AutoComplete component w/
multiple
option, and see console errors when selecting multiple itemsExpected behavior
No Aria errors
The text was updated successfully, but these errors were encountered: