1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 02:55:25 +02:00
This commit is contained in:
syuilo
2020-09-13 10:54:12 +09:00
parent 4c07cf74ef
commit e0ba42df0a
3 changed files with 55 additions and 65 deletions

View File

@@ -606,11 +606,10 @@ export default defineComponent({
},
async insertEmoji(ev) {
const vm = os.modal(await import('./emoji-picker.vue'), {
source: ev.currentTarget || ev.target
}).$once('chosen', emoji => {
os.modal(defineAsyncComponent(() => import('@/components/emoji-picker.vue')), {}, emoji => {
insertTextAtCursor(this.$refs.text, emoji);
vm.close();
}, {
source: ev.currentTarget || ev.target
});
},