Skip to content

Modal pops up with the following error message: 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 #7838

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

Closed
1 task
lis216 opened this issue Sep 14, 2024 · 1 comment

Comments

@lis216
Copy link

lis216 commented Sep 14, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.3

Environment

win11, edge 128.0.2739.67,vue:3.5.4

Reproduction link

ant-design/ant-design#50170

Steps to reproduce

引用a-modal组件。然后打开弹窗时,console报错

What is expected?

不报错

What is actually happening?

报错:Modal pops up with the following error message: Blocked aria-hidden on a

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

@selicens
Copy link
Member

Waiting for pr merge #7823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants