Skip to content

Commit

Permalink
Merge pull request #9920 from hicommonwealth/malik.fix-image-upload
Browse files Browse the repository at this point in the history
Fix image upload
  • Loading branch information
ilijabojanovic authored Nov 14, 2024
2 parents b1e9fc4 + 26af83d commit 87e977a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ export const UploadControl = ({
className="generate-image-section"
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => {
e.preventDefault();
e.stopPropagation();
if (e.key === 'Enter' && imagePrompt.trim()) {
e.preventDefault();
e.stopPropagation();
generateImage({ prompt: imagePrompt.trim() }).catch(
console.error,
);
Expand Down

0 comments on commit 87e977a

Please sign in to comment.