diff --git a/index.es.js b/index.es.js index 01cd8b30..b2598efe 100644 --- a/index.es.js +++ b/index.es.js @@ -458,7 +458,9 @@ var FontAwesomeIcon = defineComponent({ return renderedIcon.value ? convert(renderedIcon.value.abstract[0], {}, attrs) : null; }); return function () { - return vnode.value; + return h(function () { + return vnode.value; + }); }; } }); @@ -538,7 +540,9 @@ var FontAwesomeLayersText = defineComponent({ return convert(abstractElement.value, {}, attrs); }); return function () { - return vnode.value; + return h(function () { + return vnode.value; + }); }; } }); diff --git a/index.js b/index.js index bbfbe2a8..17b0d623 100644 --- a/index.js +++ b/index.js @@ -461,7 +461,9 @@ return renderedIcon.value ? convert(renderedIcon.value.abstract[0], {}, attrs) : null; }); return function () { - return vnode.value; + return vue.h(function () { + return vnode.value; + }); }; } }); @@ -541,7 +543,9 @@ return convert(abstractElement.value, {}, attrs); }); return function () { - return vnode.value; + return vue.h(function () { + return vnode.value; + }); }; } }); diff --git a/src/components/FontAwesomeIcon.js b/src/components/FontAwesomeIcon.js index ecf5f456..37451483 100644 --- a/src/components/FontAwesomeIcon.js +++ b/src/components/FontAwesomeIcon.js @@ -1,5 +1,5 @@ import { parse as faParse, icon as faIcon } from '@fortawesome/fontawesome-svg-core' -import { defineComponent, computed, watch } from 'vue' +import { defineComponent, computed, watch, h } from 'vue' import convert from '../converter' import log from '../logger' import { objectWithKey, classList } from '../utils' @@ -122,6 +122,6 @@ export default defineComponent({ }, { immediate: true }) const vnode = computed(() => renderedIcon.value ? convert(renderedIcon.value.abstract[0], {}, attrs) : null) - return () => vnode.value + return () => h(() => vnode.value) } }) diff --git a/src/components/FontAwesomeLayersText.js b/src/components/FontAwesomeLayersText.js index b419bdb6..3a70b007 100644 --- a/src/components/FontAwesomeLayersText.js +++ b/src/components/FontAwesomeLayersText.js @@ -1,5 +1,5 @@ import { config, parse, text } from '@fortawesome/fontawesome-svg-core' -import { defineComponent, computed } from 'vue' +import { defineComponent, computed, h } from 'vue' import convert from '../converter' import { objectWithKey } from '../utils' @@ -44,6 +44,6 @@ export default defineComponent({ }) const vnode = computed(() => convert(abstractElement.value, {}, attrs)) - return () => vnode.value + return () => h(() => vnode.value) } })