chore: lint fixes
This commit is contained in:
@@ -180,7 +180,7 @@ export class BubbleMenuView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tippy?.setProps({
|
this.tippy?.setProps({
|
||||||
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => {
|
getReferenceClientRect: this.tippyOptions?.getReferenceClientRect || (() => {
|
||||||
if (isNodeSelection(state.selection)) {
|
if (isNodeSelection(state.selection)) {
|
||||||
const node = view.nodeDOM(from) as HTMLElement
|
const node = view.nodeDOM(from) as HTMLElement
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ export class BubbleMenuView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return posToDOMRect(view, from, to)
|
return posToDOMRect(view, from, to)
|
||||||
},
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
this.show()
|
this.show()
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ export class FloatingMenuView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tippy?.setProps({
|
this.tippy?.setProps({
|
||||||
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => posToDOMRect(view, from, to),
|
getReferenceClientRect: this.tippyOptions?.getReferenceClientRect || (() => posToDOMRect(view, from, to)),
|
||||||
})
|
})
|
||||||
|
|
||||||
this.show()
|
this.show()
|
||||||
|
|||||||
Reference in New Issue
Block a user