From c73ec739208977d2ecf7a49bb9542d348cb733dc Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 4 Aug 2023 12:48:11 +0000 Subject: [PATCH] fix --- .../src/components/MkEmojiPickerDialog.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/MkEmojiPickerDialog.vue b/packages/frontend/src/components/MkEmojiPickerDialog.vue index acfc330c39..855d82c064 100644 --- a/packages/frontend/src/components/MkEmojiPickerDialog.vue +++ b/packages/frontend/src/components/MkEmojiPickerDialog.vue @@ -12,11 +12,10 @@ SPDX-License-Identifier: AGPL-3.0-only :transparentBg="true" :manualShowing="manualShowing" :src="src" - @click="click" + @click="modal?.close()" @opening="opening" @close="emit('close')" @closed="emit('closed')" - @hide="emit('hide')" > (); const modal = shallowRef>(); @@ -61,7 +58,7 @@ const picker = shallowRef>(); function chosen(emoji: any) { emit('done', emoji); - if (props.manualShowing === null) modal.value?.close(); + modal.value?.close(); } function opening() { @@ -73,11 +70,6 @@ function opening() { picker.value?.focus(); }, 10); } - -function click() { - emit('bgclick'); - if (props.manualShowing === null) modal.value?.close(); -}