From 77d5f39a07221d57b959ec9c25b81ae2b8e403a7 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 21 Oct 2024 23:29:16 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BB=96=E3=81=AEpopupMenu=E3=81=AE=E9=A0=85?= =?UTF-8?q?=E7=9B=AE=E9=81=B8=E6=8A=9E=E6=99=82=E3=81=A8=E6=8C=99=E5=8B=95?= =?UTF-8?q?=E3=82=92=E3=81=82=E3=82=8F=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/MkPostFormOtherMenu.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkPostFormOtherMenu.vue b/packages/frontend/src/components/MkPostFormOtherMenu.vue index f0389c6a3b..cfa356b0a2 100644 --- a/packages/frontend/src/components/MkPostFormOtherMenu.vue +++ b/packages/frontend/src/components/MkPostFormOtherMenu.vue @@ -104,8 +104,11 @@ async function toggleReactionAcceptance() { ], default: props.currentReactionAcceptance, }); - if (select.canceled) return; - emit('changeReactionAcceptance', select.result); + + if (!select.canceled) { + emit('changeReactionAcceptance', select.result); + } + modal.value?.close(); } @@ -114,9 +117,11 @@ async function reset() { type: 'question', text: i18n.ts.resetAreYouSure, }); - if (canceled) return; - emit('reset'); + if (!canceled) { + emit('reset'); + } + modal.value?.close(); }