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) => { (e) => {
if (isEnterHotkey(e)) { if (isEnterHotkey(e)) {
e.stopPropagation(); e.stopPropagation();
e.preventDefault();
handleConfirm(); handleConfirm();
} else if (isEscHotkey(e)) { } else if (isEscHotkey(e)) {
e.stopPropagation(); e.stopPropagation();

Loading…
Cancel
Save