fix: 修复右键图标后,鼠标点击图层位置,组件处弹出的菜单不会隐藏问题

This commit is contained in:
wangjiahao 2024-01-17 11:33:47 +08:00
parent afe73c918b
commit 90b008e7f8

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