vitepress-plugin-image-viewer icon indicating copy to clipboard operation
vitepress-plugin-image-viewer copied to clipboard

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

Open shijunpeng15 opened this issue 9 months ago • 1 comments

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

shijunpeng15 avatar Feb 08 '25 08:02 shijunpeng15

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,只能等那边的开源库修复了

T-miracle avatar Feb 08 '25 09:02 T-miracle