[Bug Report] ImagePreview在使用函数调用的方式时,偶然出现Uncaught TypeError: Cannot read properties of undefined (reading 'firstElementChild')
aug-sunrise opened this issue · comments
jingxin commented
重现链接
https://vant-ui.github.io/vant/mobile.html#/zh-CN/image-preview
Vant 版本
4.8.10
描述一下你遇到的问题。
使用函数式调用showImagePreview之后,迅速关闭并点击页面,偶然出现Uncaught TypeError: Cannot read properties of undefined (reading 'firstElementChild')报错,在vant官网即可复现(我先发现自己项目中有报错,后来在vant官网也可以复现)
重现步骤
1、调用函数showImagePreview 2.图片打开后循序点击黑色背景关闭 3.持续点击页面元素
设备/浏览器
macOS/windows,chrome123.0
jingxin commented