細かい不備を修正
This commit is contained in:
parent
90c735f234
commit
7b44bec654
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -857,7 +857,9 @@ async function insertEmoji(ev: MouseEvent) {
|
|||
},
|
||||
() => {
|
||||
textAreaReadOnly.value = false;
|
||||
focus();
|
||||
setTimeout(() => {
|
||||
focus();
|
||||
}, 10);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue