mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-23 19:19:03 +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
|
||||
}
|
||||
|
||||
if (
|
||||
event?.relatedTarget === this.editor.view.dom
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
this.hide()
|
||||
}
|
||||
|
||||
|
@ -123,6 +123,12 @@ export class FloatingMenuView {
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
event?.relatedTarget === this.editor.view.dom
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
this.hide()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user