Closed stefanprobst closed 3 months ago
Hi! After the last update I get this error in the console when I try to use the Combobox
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. <input type="text" aria-expanded="true" aria-controls="radix-vue-combobox-content-1" aria-disabled="false" aria-autocomplete="list" role="combobox" autocomplete="false" class="ComboboxInput" placeholder="Placeholder..." value aria-activedescendant="radix-vue-combobox-option-4">
Thanks @maxmaxme ! I realized this issue too! Will push a fix soon!
Environment
Link to minimal reproduction
https://github.com/stefanprobst/issue-shadcn-vue-checkbox
Steps to reproduce
pnpm install
,pnpm run dev
Describe the bug
aria-hidden=""
does not actually hide the element. when inspecting the<input type="checkbox">
in devtools, you will see two elements with role=checkbox, the<button role="checkbox">
and the<input type="checkbox" aria-hidden="">
:when setting
aria-hidden="true"
on the input element, you will see:Expected behavior
No response
Context & Screenshots (if applicable)
the repro is for checkbox, but there may be other components affected as well.