vitepress-plugin-image-viewer
vitepress-plugin-image-viewer copied to clipboard
图片在关闭后,控制台会出现错误提示
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">…
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">…
这个错误是因为浏览器加了新特性导致的,一般来说不影响使用,而且这个报错我这边也没法解决,因为我这个库调用的是viewjs,只能等那边的开源库修复了