Skip to content

Commit

Permalink
fixup! TW-759 Use keyboard to select suggestion item
Browse files Browse the repository at this point in the history
  • Loading branch information
drminh2807 authored and hoangdat committed Oct 27, 2023
1 parent 48c318b commit b6ff1fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/pages/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ class ChatController extends State<Chat>
timeline = null;
inputFocus.removeListener(_inputFocusListener);
disposeSearch();
focusSuggestionController.dispose();
super.dispose();
}

Expand Down
4 changes: 4 additions & 0 deletions lib/pages/chat/input_bar/focus_suggestion_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ class FocusSuggestionController {
currentIndex.value = 0;
}
}

void dispose() {
currentIndex.dispose();
}
}
1 change: 1 addition & 0 deletions lib/pages/chat_draft/draft_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class DraftChatController extends State<DraftChat>
sendController.dispose();
forwardListController.dispose();
inputFocus.removeListener(_inputFocusListener);
focusSuggestionController.dispose();
super.dispose();
}

Expand Down

0 comments on commit b6ff1fd

Please sign in to comment.