fix: fix will input enter when send image with enter key

pull/90/head
moonrailgun 2 years ago
parent 4ee2fa81e2
commit 98e78e28f8

@ -47,6 +47,7 @@ export const ImageUploadPreviewer: React.FC<ImageUploadPreviewerProps> =
(e) => {
if (isEnterHotkey(e)) {
e.stopPropagation();
e.preventDefault();
handleConfirm();
} else if (isEscHotkey(e)) {
e.stopPropagation();

Loading…
Cancel
Save