Skip to content

Commit

Permalink
fix: find getting focus unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
richardshiue committed Feb 7, 2025
1 parent b689a75 commit b4d6caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/editor/find_replace_menu/search_service_v3.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:appflowy_editor/src/editor/find_replace_menu/search_algorithm.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

const selectionExtraInfoDisableToolbar = 'selectionExtraInfoDisableToolbar';

Expand Down Expand Up @@ -113,6 +114,9 @@ class SearchServiceV3 {
editorState.updateSelectionWithReason(
null,
reason: SelectionUpdateReason.searchHighlight,
extraInfo: {
selectionExtraInfoDoNotAttachTextService: true,
},
);
} else {
selectedIndex = selectedIndex;
Expand Down Expand Up @@ -158,6 +162,7 @@ class SearchServiceV3 {
reason: SelectionUpdateReason.searchHighlight,
extraInfo: {
selectionExtraInfoDisableToolbar: true,
selectionExtraInfoDoNotAttachTextService: true,
},
);
}
Expand Down

0 comments on commit b4d6caa

Please sign in to comment.