1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

fix: keep emoji object reactive

resolves #176
This commit is contained in:
Daniel Roe 2022-11-27 20:51:55 +00:00
parent 7182d69a61
commit 9687330dd4
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -10,10 +10,8 @@ const props = defineProps<{
emojis?: Emoji[] emojis?: Emoji[]
}>() }>()
const emojiObject = emojisArrayToObject(props.emojis || [])
export default () => h( export default () => h(
'span', 'span',
{ class: 'content-rich' }, { class: 'content-rich' },
contentToVNode(props.content, emojiObject), contentToVNode(props.content, emojisArrayToObject(props.emojis || [])),
) )