Skip to content

Commit

Permalink
Optimize tag completion
Browse files Browse the repository at this point in the history
优化tag补全
  • Loading branch information
jiangtian616 committed Aug 4, 2024
1 parent 0e99b21 commit bde51dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/v8.0.0+254.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- 优化tag补全
-
------------------------------------------------------------------------------------------

- Optimize tag completion
2 changes: 1 addition & 1 deletion lib/src/pages/search/mixin/search_page_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ mixin SearchPageMixin<L extends SearchPageLogicMixin, S extends SearchPageStateM
onTap: () {
if (state.searchConfigInitCompleter.isCompleted) {
state.searchConfig.keyword = (state.searchConfig.keyword?.substring(0, state.suggestions[index].matchStart) ?? '') +
'${state.suggestions[index].tagData.namespace}:"${state.suggestions[index].tagData.key}\$"';
'${state.suggestions[index].tagData.namespace}:"${state.suggestions[index].tagData.key}\$" ';
state.searchFieldFocusNode.requestFocus();
logic.update([logic.searchFieldId]);
}
Expand Down

0 comments on commit bde51dd

Please sign in to comment.