Merge pull request #6360 from dataease/pr@dev-v2@fix_proper-watch

fix: 快捷键增加el-popover的弹框监控,防止el-popover内部操作影响大屏快捷键
This commit is contained in:
王嘉豪 2023-10-25 15:47:40 +08:00 committed by GitHub
commit 4a422b3b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,11 @@ const checkDialog = () => {
haveDialog = true
}
})
document.querySelectorAll('.ed-popover').forEach(element => {
if (window.getComputedStyle(element).getPropertyValue('display') != 'none') {
haveDialog = true
}
})
// 富文本单框
if (document.querySelector('.tox-dialog-wrap')) {
haveDialog = true