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(); }