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

图片在关闭后,控制台会出现错误提示 #5

Open
shijunpeng15 opened this issue Feb 8, 2025 · 1 comment
Open

图片在关闭后,控制台会出现错误提示 #5

shijunpeng15 opened this issue Feb 8, 2025 · 1 comment

Comments

@shijunpeng15
Copy link

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=​"viewer-container viewer-backdrop viewer-fixed viewer-fade viewer-transition viewer-hide" tabindex=​"-1" touch-action=​"none" id=​"viewer0" style=​"z-index:​ 2015;​" aria-hidden=​"true">​…​​

Image

@T-miracle
Copy link
Owner

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=​"viewer-container viewer-backdrop viewer-fixed viewer-fade viewer-transition viewer-hide" tabindex=​"-1" touch-action=​"none" id=​"viewer0" style=​"z-index:​ 2015;​" aria-hidden=​"true">​…​​

Image

这个错误是因为浏览器加了新特性导致的,一般来说不影响使用,而且这个报错我这边也没法解决,因为我这个库调用的是viewjs,只能等那边的开源库修复了

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