fix emojiPicker

This commit is contained in:
ThinaticSystem 2022-09-12 01:14:34 +09:00
parent 52ba77a8e1
commit 46a310292f

View File

@ -103,7 +103,7 @@ const props = withDefaults(defineProps<{
}); });
const emit = defineEmits<{ const emit = defineEmits<{
(ev: 'chosen', v: { reaction: string, withRenote: boolean }): void; (ev: 'chosen', v: { reaction: string, withRenote: boolean } | string): void;
}>(); }>();
const search = ref<HTMLInputElement>(); const search = ref<HTMLInputElement>();
@ -298,7 +298,7 @@ function chosen(emoji: any, ev?: MouseEvent) {
} }
const key = getKey(emoji); const key = getKey(emoji);
emit('chosen', { reaction: key, withRenote: withRenote.value }); emit('chosen', (props.asReactionPicker) ? { reaction: key, withRenote: withRenote.value } : key);
// 使 // 使
if (!pinned.value.includes(key)) { if (!pinned.value.includes(key)) {