Allow overriding getReferenceClientRect in floating menu
This commit is contained in:
@@ -156,7 +156,7 @@ export class FloatingMenuView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tippy?.setProps({
|
this.tippy?.setProps({
|
||||||
getReferenceClientRect: () => posToDOMRect(view, from, to),
|
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => posToDOMRect(view, from, to),
|
||||||
})
|
})
|
||||||
|
|
||||||
this.show()
|
this.show()
|
||||||
|
|||||||
Reference in New Issue
Block a user