Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening a Menu logs error in console #6644

Closed
1 of 2 tasks
ShadowWolf308 opened this issue Aug 8, 2024 · 5 comments
Closed
1 of 2 tasks

Opening a Menu logs error in console #6644

ShadowWolf308 opened this issue Aug 8, 2024 · 5 comments
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@ShadowWolf308
Copy link

ShadowWolf308 commented Aug 8, 2024

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.12.0

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

Chrome

Describe the bug

On opening a menu an error gets logged in the console as follows:

Blocked aria-hidden on a <div> 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. <div tabindex=​"-1" data-autofocus=​"true" aria-hidden=​"true" style=​"outline:​ 0px;​">​</div>​

If possible, include a link to a codesandbox with a minimal reproduction

This can be reproduced in the mantine.dev site

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Aug 14, 2024
@rtivital
Copy link
Member

Fixed in 7.12.2

@Jannchie
Copy link

It seems to not have been fixed. Clicking “toggle menu” twice still triggers this issue. Additionally, in my local project, clicking once still triggers this issue as well. I am using version 7.12.2.

@rtivital
Copy link
Member

I do not get any errors in console on mantine.dev website.

@Jannchie
Copy link

2024-08-31.182351.mp4

@JonatanRydh
Copy link

This is still an issue. One way to reproduce on mantine.dev:

  1. Go to https://mantine.dev/core/menu/
  2. Open developer console, make sure it is docked in the same window.
  3. Resize the developer console.
  4. Click "Toggle menu" twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

4 participants