Replies: 3 comments 7 replies
-
same issue, anyone found a good solution to this? im using this <DrawerTrigger
onClick={(e) => {
e.currentTarget.blur();
}}
> |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this is the correct way but it works for me <Drawer open={openDrawer} onOpenChange={setOpenDrawer} autoFocus={openDrawer} /> or <DrawerTrigger autoFocus={openDrawer} /> |
Beta Was this translation helpful? Give feedback.
-
Hey guys, found another solution to this problem, it won't relieve the accessibility warning, but it wouldn't prevent the click events on the UI elements OrdersActionsJust keep it modular and scalable
So before the applied solution, the opening of the modal and the drawer would cause the clicking event issue And here's the solution for resolving it
Just added a bit of a delay before triggering details and pdf viewer, and boy it works, though you still have the aria-hidden warning, but I mean it works |
Beta Was this translation helpful? Give feedback.
-
when I using a the drawer from shadcn, when i trigger the drawer using TriggerDrawer, then the state updates to true, But the error getting up and nothing happens.
For more info
I have started a vite react js project, by using tanstack start and that uses vinxi, along with tailwind and shadcn, Solve if possible.
Blocked aria-hidden on an element because its descendant retained focus. The 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.
Element with focus: button:
These are some snaps of the configs
Beta Was this translation helpful? Give feedback.
All reactions