-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.3
Environment
chrome版本 127.0.6533.73(正式版本)(64 位)
Reproduction link
https://www.antdv.com/components/modal-cn
Steps to reproduce
- 使用chrome最新版本;
- 打开antdv组件库的modal界面;
- 打开console并触发页面的modal组件即可见到此报错信息;
What is expected?
预期是没有此报错信息
What is actually happening?
使用modal组件并调用后console显示如下报错信息:
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.
MDN文档关于aria-hidden的说明中提到:不要在可以获得焦点的元素上使用 aria-hidden="true"。
Tit1e, kshpnyfsa49729, nikojxie and penggang-home