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
1 changed files with 1 additions and 3 deletions

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 || [])),
) )