fix tippy position
This commit is contained in:
@@ -32,7 +32,7 @@ export interface SuggestionProps {
|
||||
items: any[],
|
||||
command: (attributes: AnyObject) => void,
|
||||
decorationNode: Element | null,
|
||||
clientRect: DOMRect | null,
|
||||
clientRect: () => (DOMRect | null),
|
||||
}
|
||||
|
||||
export interface SuggestionKeyDownProps {
|
||||
@@ -98,7 +98,7 @@ export function Suggestion({
|
||||
decorationNode,
|
||||
// virtual node for popper.js or tippy.js
|
||||
// this can be used for building popups without a DOM node
|
||||
clientRect: decorationNode?.getBoundingClientRect() || null,
|
||||
clientRect: () => decorationNode?.getBoundingClientRect() || null,
|
||||
}
|
||||
|
||||
if (handleStart) {
|
||||
|
||||
Reference in New Issue
Block a user