mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-08 11:57:32 +08:00
fix(frontend): Unbreak ChatInputField
Fix specification of `onSubmitted` hook in the `TextField`.
This commit is contained in:
parent
8fd2e48c1b
commit
e44ca4185a
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user