Skip to content

Commit

Permalink
fix(frontend): Unbreak ChatInputField
Browse files Browse the repository at this point in the history
Fix specification of `onSubmitted` hook in the `TextField`.
  • Loading branch information
Pwuts committed Feb 21, 2024
1 parent 8fd2e48 commit e44ca41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/lib/views/chat/chat_input_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ class _ChatInputFieldState extends State<ChatInputField> {
controller: _controller,
focusNode: _focusNode,
// Enable enter key stroke to send the message
// Untested but submitted at Pwuts recommendation
onSubmitted: () {
onSubmitted: (_) {
widget.onSendPressed(_controller.text);
_controller.clear();
},
Expand Down

0 comments on commit e44ca41

Please sign in to comment.