fix-trigger (#11214)

This commit is contained in:
Tom Moor
2026-01-18 10:32:29 -05:00
committed by GitHub
parent f12e865e5c
commit 06e005cab9
+2 -1
View File
@@ -199,7 +199,8 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
const handleClearSearch = React.useCallback(() => {
const { state, dispatch } = view;
const selection = selectionRef.current ?? state.selection;
const selection =
isMobile && selectionRef.current ? selectionRef.current : state.selection;
const poss = state.doc.cut(
selection.from - (props.search ?? "").length - props.trigger.length,
selection.from