Open Jels02 opened 1 week ago
It's not consistent because it's more of a timing thing that chrome is freaking out about. We remove the aria-hidden
attribute basically at the same time as we focus on the element. I'll look into seeing how we can ensure they are never taking place at the same time.
This is an issue for Bits UI, so I'm going to move it there.
Describe the bug
When opening a focusable component within the Calendar component header, an error will display in the browser console, about the ancestor (The calendar header) containing the "aria-hidden=true" prop but the child being focusable.
Reproduction
Can be reproduced on the shadcn-svelte docs site: https://shadcn-svelte.com/docs/components/calendar#month--year-selects It's not super consistent, on both the docsl site and on my project that I encountered the bug in, but I can reproduce it consisently in my browser (tested on Arc, Chrome and Edge):
console
tabelements
tab (before interacting with calendar)If you have issuse with reproducing let me know and I will attach a video.
Logs
No response
System Info
Severity
annoyance