エフェクトが壊れて出ないのを修正
This commit is contained in:
@@ -43,7 +43,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="shown" style="padding-left: 18px;">
|
<div v-if="shown" style="padding-left: 18px;">
|
||||||
<!-- TODO: 再帰へのイベントの渡し方が微妙なのか反応はするがエフェクトが出ない -->
|
|
||||||
<MkEmojiPickerSection
|
<MkEmojiPickerSection
|
||||||
v-for="child in customEmojiTree"
|
v-for="child in customEmojiTree"
|
||||||
:key="`custom:${child.value}`"
|
:key="`custom:${child.value}`"
|
||||||
@@ -51,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
:emojis="computed(() => customEmojis.filter(e => e.category === child.category).map(e => `:${e.name}:`))"
|
:emojis="computed(() => customEmojis.filter(e => e.category === child.category).map(e => `:${e.name}:`))"
|
||||||
:isChildrenExits="child.children.length!==0"
|
:isChildrenExits="child.children.length!==0"
|
||||||
:customEmojiTree="child.children"
|
:customEmojiTree="child.children"
|
||||||
@chosen="emit('chosen', $event, $event)"
|
@chosen="nestedChosen"
|
||||||
>
|
>
|
||||||
{{ child.value }}
|
{{ child.value }}
|
||||||
</MkEmojiPickerSection>
|
</MkEmojiPickerSection>
|
||||||
@@ -87,4 +86,8 @@ function computeButtonTitle(ev: MouseEvent): void {
|
|||||||
const emoji = elm.dataset.emoji as string;
|
const emoji = elm.dataset.emoji as string;
|
||||||
elm.title = getEmojiName(emoji) ?? emoji;
|
elm.title = getEmojiName(emoji) ?? emoji;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nestedChosen(emoji: any, ev?: MouseEvent) {
|
||||||
|
emit('chosen', emoji, ev);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user