Merge pull request #7668 from dataease/pr@dev-v2@fix_menu

fix: 修复右键图标后,鼠标点击图层位置,组件处弹出的菜单不会隐藏问题
This commit is contained in:
王嘉豪 2024-01-17 11:35:47 +08:00 committed by GitHub
commit 0c346e4ebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -497,6 +497,10 @@ const handleContextMenu = e => {
//
if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) {
contextmenuStore.showContextMenu({ top, left, position: 'canvasCore' })
const iconDom = document.getElementById('close-button')
if (iconDom) {
iconDom.click()
}
}
}