mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
fix(bubble-menu): avoid bluring if event is on the editor (#5835)
This commit is contained in:
parent
3c82af3842
commit
f67b217b30
9
.changeset/pink-avocados-stare.md
Normal file
9
.changeset/pink-avocados-stare.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
"@tiptap/extension-floating-menu": patch
|
||||||
|
"@tiptap/extension-bubble-menu": patch
|
||||||
|
"@tiptap/react": patch
|
||||||
|
"@tiptap/vue-2": patch
|
||||||
|
"@tiptap/vue-3": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes an issue where the bubble and flaoting menus on blur would remount
|
@ -156,6 +156,12 @@ export class BubbleMenuView {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
event?.relatedTarget === this.editor.view.dom
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.hide()
|
this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,6 +123,12 @@ export class FloatingMenuView {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
event?.relatedTarget === this.editor.view.dom
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.hide()
|
this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user