fix menus in vue 3 for now

This commit is contained in:
Philipp Kühn
2021-04-03 23:17:36 +02:00
parent 7c757415e9
commit 177eed65a4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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