Skip to content

Commit

Permalink
Merge pull request #35865 from dukenv0307/fix/35368-compose-box-does-…
Browse files Browse the repository at this point in the history
…not-shrink-when-content-is-deleted

Fix/35368: Composer is not shrinked
  • Loading branch information
MariaHCD authored Feb 22, 2024
2 parents c425c34 + cbc6cf6 commit d33bf6e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,12 @@ function ReportActionCompose({
onBlur={onBlur}
measureParentContainer={measureContainer}
listHeight={listHeight}
onValueChange={validateCommentMaxLength}
onValueChange={(value) => {
if (value.length === 0 && isComposerFullSize) {
Report.setIsComposerFullSize(reportID, false);
}
validateCommentMaxLength(value);
}}
/>
<ReportDropUI
onDrop={(e) => {
Expand Down

0 comments on commit d33bf6e

Please sign in to comment.