From 06e005cab9707aa46a981d671bab1bbd654b08f4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 18 Jan 2026 10:32:29 -0500 Subject: [PATCH] fix-trigger (#11214) --- app/editor/components/SuggestionsMenu.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/editor/components/SuggestionsMenu.tsx b/app/editor/components/SuggestionsMenu.tsx index 8de1d6e4ff..7fc45cdb61 100644 --- a/app/editor/components/SuggestionsMenu.tsx +++ b/app/editor/components/SuggestionsMenu.tsx @@ -199,7 +199,8 @@ function SuggestionsMenu(props: Props) { 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