fix emojiPicker

This commit is contained in:
ThinaticSystem 2022-09-12 01:14:34 +09:00 committed by sim1222
parent 070d91e16e
commit d8a4837df6

View File

@ -103,7 +103,7 @@ const props = withDefaults(defineProps<{
});
const emit = defineEmits<{
(ev: 'chosen', v: { reaction: string, withRenote: boolean }): void;
(ev: 'chosen', v: { reaction: string, withRenote: boolean } | string): void;
}>();
const search = ref<HTMLInputElement>();
@ -298,7 +298,7 @@ function chosen(emoji: any, ev?: MouseEvent) {
}
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)) {