fix(frontend): Unbreak ChatInputField

Fix specification of `onSubmitted` hook in the `TextField`.
This commit is contained in:
Reinier van der Leer
2024-02-21 02:09:23 +01:00
parent 8fd2e48c1b
commit e44ca4185a

View File

@@ -117,8 +117,7 @@ class _ChatInputFieldState extends State<ChatInputField> {
controller: _controller, controller: _controller,
focusNode: _focusNode, focusNode: _focusNode,
// Enable enter key stroke to send the message // Enable enter key stroke to send the message
// Untested but submitted at Pwuts recommendation onSubmitted: (_) {
onSubmitted: () {
widget.onSendPressed(_controller.text); widget.onSendPressed(_controller.text);
_controller.clear(); _controller.clear();
}, },