mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-01-21 04:48:13 +00:00
fix(editor): 组件树右键菜单添加组件无效
This commit is contained in:
parent
311ff22ae4
commit
fd5f7779a6
@ -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