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

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()
}
}
}