mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +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,
|
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();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user