fix: Compatibility issues with zooming in and out of AI dialog box images (#4495)

This commit is contained in:
shaohuzhang1 2025-12-11 13:22:50 +08:00 committed by GitHub
parent cbef333dc0
commit a56b5a3291
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -717,11 +717,11 @@ onMounted(() => {
if (event.target) {
const target = event.target as HTMLElement
//
if (target.className && target.className.includes('medium-zoom-overlay')) {
if (target.classList && target.classList.contains('medium-zoom-overlay')) {
event.preventDefault()
event.stopPropagation()
}
if (target.className && target.className.includes('medium-zoom-image--opened')) {
if (target.classList && target.classList.contains('medium-zoom-image--opened')) {
event.preventDefault()
event.stopPropagation()