fix flicker bug for menus

This commit is contained in:
Philipp Kühn
2021-04-01 17:55:32 +02:00
parent 3b3a0103b9
commit 4d4f96bfc0
6 changed files with 6 additions and 6 deletions

View File

@@ -42,6 +42,6 @@ export const BubbleMenu = defineComponent({
editor.unregisterPlugin(BubbleMenuPluginKey)
})
return () => h('div', { ref: root }, slots.default?.())
return () => h('div', { ref: root, style: { visibility: 'hidden' } }, slots.default?.())
},
})

View File

@@ -36,6 +36,6 @@ export const FloatingMenu = defineComponent({
editor.unregisterPlugin(FloatingMenuPluginKey)
})
return () => h('div', { ref: root }, slots.default?.())
return () => h('div', { ref: root, style: { visibility: 'hidden' } }, slots.default?.())
},
})