Skip to content

Commit

Permalink
Merge pull request #45985 from Krishna2323/krishna2323/issue/45471
Browse files Browse the repository at this point in the history
fix: mWeb - Chat - Keyboard is not dismissed when pasting an image on compose box.
  • Loading branch information
arosiclair authored Jul 25, 2024
2 parents 2a9134d + 24581bf commit e9ec3e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,10 @@ function ComposerWithSuggestions(
onFocus={onFocus}
onBlur={onBlur}
onClick={setShouldBlockSuggestionCalcToFalse}
onPasteFile={displayFileInModal}
onPasteFile={(file) => {
textInputRef.current?.blur();
displayFileInModal(file);
}}
shouldClear={textInputShouldClear}
onClear={onClear}
isDisabled={isBlockedFromConcierge || disabled}
Expand Down

0 comments on commit e9ec3e9

Please sign in to comment.