mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix-trigger (#11214)
This commit is contained in:
@@ -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