Skip to content

Commit 49eb01f

Browse files
committed
fix(FloatingButtons): hide btns until first mousemove
Signed-off-by: silver <s.szmajduch@posteo.de> Assisted-by: ClaudeCode:claude-fable-5
1 parent f19f524 commit 49eb01f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/Editor/FloatingButtons.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ export default {
6868
},
6969
},
7070
71+
mounted() {
72+
// Start hidden until the drag handle plugin positions the buttons on
73+
// first mousemove. The Vue 3 wrapper of @tiptap/extension-drag-handle
74+
// does that internally, so this is not needed on NC v35 onwards.
75+
this.$el.style.visibility = 'hidden'
76+
},
77+
7178
methods: {
7279
onNodeChange({ node, pos }) {
7380
this.node = node

0 commit comments

Comments
 (0)