diff --git a/packages/extension-floating-menu/src/floating-menu-plugin.ts b/packages/extension-floating-menu/src/floating-menu-plugin.ts index 4ab1b0b8..caffdffc 100644 --- a/packages/extension-floating-menu/src/floating-menu-plugin.ts +++ b/packages/extension-floating-menu/src/floating-menu-plugin.ts @@ -156,7 +156,7 @@ export class FloatingMenuView { } this.tippy?.setProps({ - getReferenceClientRect: () => posToDOMRect(view, from, to), + getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => posToDOMRect(view, from, to), }) this.show()