mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-16 00:49:49 +08:00
fix(editor): 组件树右键菜单添加组件无效
This commit is contained in:
parent
663d7cee9f
commit
a320823992
@ -49,7 +49,7 @@ export default defineComponent({
|
||||
|
||||
onMounted(() => {
|
||||
globalThis.addEventListener(
|
||||
'mousedown',
|
||||
'mouseup',
|
||||
(e: MouseEvent) => {
|
||||
if (!visible.value || (e.target && menu.value?.contains(e.target as HTMLElement))) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user