Skip to content

Commit

Permalink
fix: fix "Save & Submit" button disabling with attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Dec 14, 2023
1 parent cd227b9 commit ff8c22f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Chat/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@ export const ChatMessage: FC<Props> = memo(
<button
className="button button-primary"
onClick={handleEditMessage}
disabled={messageContent.trim().length <= 0}
disabled={
messageContent.trim().length <= 0 &&
newEditableAttachments.length <= 0
}
data-qa="save-and-submit"
>
{t('Save & Submit')}
Expand Down

0 comments on commit ff8c22f

Please sign in to comment.