mirror of
https://github.com/outline/outline.git
synced 2026-11-29 00:29:36 +03:00
fix-trigger (#11214)
This commit is contained in:
1 parent
f12e865e5c
commit
06e005cab9
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user