diff --git a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx index 6475e8af55d1..56320e6c67bb 100644 --- a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx +++ b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx @@ -27,7 +27,7 @@ export interface InputBarContainerProps { agentConfigurations: AgentConfigurationType[]; disableAttachment: boolean; onEnterKeyDown: CustomEditorProps["onEnterKeyDown"]; - onInputFileChange: (e: React.ChangeEvent) => void; + onInputFileChange: (e: React.ChangeEvent) => Promise; owner: WorkspaceType; selectedAssistant: AgentMention | null; stickyMentions: AgentMention[] | undefined; @@ -97,7 +97,10 @@ const InputBarContainer = ({
{ + await onInputFileChange(e); + editorService.focusEnd(); + }} ref={fileInputRef} style={{ display: "none" }} type="file"