From a7ecd56872e9d8cf715ca256ee744d3e23e70f25 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Fri, 22 May 2026 16:19:34 +0200 Subject: [PATCH] bug-fixes --- .../PostEditor/PostTextarea/Mention/suggestion.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/PostEditor/PostTextarea/Mention/suggestion.ts b/src/components/PostEditor/PostTextarea/Mention/suggestion.ts index 434b7e0f..2ee38328 100644 --- a/src/components/PostEditor/PostTextarea/Mention/suggestion.ts +++ b/src/components/PostEditor/PostTextarea/Mention/suggestion.ts @@ -7,7 +7,7 @@ import { import postEditor from '@/services/post-editor.service' import type { Editor } from '@tiptap/core' import { ReactRenderer } from '@tiptap/react' -import { SuggestionKeyDownProps } from '@tiptap/suggestion' +import { SuggestionKeyDownProps, type SuggestionProps } from '@tiptap/suggestion' import tippy, { GetReferenceClientRect, Instance, Props } from 'tippy.js' import MentionList, { MentionListHandle, MentionListProps, type MentionListItem } from './MentionList' import { NEVENT_NADDR_PICKER_ID } from './constants' @@ -144,7 +144,7 @@ const suggestion = { }, onStart: (props: { editor: Editor; clientRect?: (() => DOMRect | null) | null }) => { component = new ReactRenderer(MentionList, { - ...props, + props, editor: props.editor }) @@ -174,7 +174,7 @@ const suggestion = { }) }, - onUpdate(props: { clientRect?: (() => DOMRect | null) | null | undefined }) { + onUpdate(props: SuggestionProps) { component?.updateProps(props) if (!props.clientRect) {