quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Error Blocked aria-hidden show up when clicking on Popup Proxy (cover mode)

Open mityaua opened this issue 1 year ago • 3 comments

What happened?

In the Popup Proxy component, if I open the popup in cover mode, the following error appears in the console. However, it looks to work all as expected.

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: div Ancestor with aria-hidden: <div class=​"q-dialog__backdrop fixed-full" aria-hidden=​"true" tabindex=​"-1" style=​"--q-transition-duration:​ 300ms;​">​​

What did you expect to happen?

I expect no error message when I call popup.

Reproduction URL

https://quasar.dev/vue-components/popup-proxy/#breakpoint

How to reproduce?

  1. Go to the Quasar's website https://quasar.dev/vue-components/popup-proxy/#breakpoint on Chrome
  2. Scroll down to Breakpoint section
  3. Open the browser's Developer tools
  4. Click on date picker several times (3 or more)
  5. You should be able to observe and error in the developer tools.

Image

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output


Relevant log output

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: div
Ancestor with aria-hidden:  <div class=​"q-dialog__backdrop fixed-full" aria-hidden=​"true" tabindex=​"-1" style=​"--q-transition-duration:​ 300ms;​">​</div>​

Additional context

Sometimes it happens in dialog mode (with breakpoint prop).

mityaua avatar Feb 06 '25 08:02 mityaua

Hi @mityaua! 👋

It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, CodeSandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

github-actions[bot] avatar Feb 06 '25 08:02 github-actions[bot]

We have also identified the reported issue.

Reproduction URL: https://codepen.io/Natalie-Demmelmaier/pen/dPyZWbW?editors=1011.

Unfortunately, the problem occurs intermittently. It requires the dialog to be opened and closed multiple times to observe the issue:

Image

nataliedemma avatar Mar 13 '25 08:03 nataliedemma

I also have this issue.

mourad1081 avatar Mar 27 '25 07:03 mourad1081