細かい不備を修正

This commit is contained in:
samunohito 2023-12-09 22:35:11 +09:00
parent 90c735f234
commit 7b44bec654
2 changed files with 4 additions and 2 deletions

View File

@ -367,7 +367,7 @@ function chosen(emoji: any, ev?: MouseEvent) {
emit('chosen', key);
// 使
if (!pinned.value.includes(key)) {
if (!pinned.value?.includes(key)) {
let recents = defaultStore.state.recentlyUsedEmojis;
recents = recents.filter((emoji: any) => emoji !== key);
recents.unshift(key);

View File

@ -857,7 +857,9 @@ async function insertEmoji(ev: MouseEvent) {
},
() => {
textAreaReadOnly.value = false;
focus();
setTimeout(() => {
focus();
}, 10);
},
);
}