mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 05:54:26 +01:00
fix(frontend): Unbreak ChatInputField
Fix specification of `onSubmitted` hook in the `TextField`.
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user