Chrome warning about aria-hidden when using .inert with x-trap
#4634
-
|
In recent versions of Chrome and other Chromium browsers, there’s a new warning when using the This seems to be a timing issue as adding a short delay or an alpine/packages/focus/src/index.js Line 169 in be9c5c5 Here’s a minimal reproduction: https://codepen.io/magiclantern/pen/vEOjaVg/9827b04ae16fffe57feb1f762870aeaa This happens in Chrome 137.0.7151.104 on macOS and in Arc 137.0.7151.104 on macOS. On a related note, support for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.

Moving the call to
setInertintofocus-trap’sonPostActivatecallback is sometimes enough to do the trick, sometimes it needs an additional tick.I’ve opened a PR here:
#4640