Skip to content

Commit 6f8f32f

Browse files
committed
closes #286
1 parent 8311aa9 commit 6f8f32f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-tippy",
3-
"version": "6.1.0",
3+
"version": "6.1.1",
44
"main": "index.js",
55
"module": "dist/vue-tippy.mjs",
66
"unpkg": "dist/vue-tippy.iife.js",

src/components/Tippy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineComponent, ref, h, UnwrapNestedRefs, onMounted, nextTick, watch, unref, reactive, PropType, resolveComponent } from 'vue'
1+
import { defineComponent, ref, h, UnwrapNestedRefs, onMounted, nextTick, watch, unref, reactive, PropType } from 'vue'
22
import { TippyOptions } from '../types'
33
import { useTippy } from '../composables'
44
import tippy from 'tippy.js'
@@ -139,7 +139,7 @@ const TippyComponent = defineComponent({
139139
return () => {
140140
const slot = slots.default ? slots.default(exposed) : []
141141

142-
const contentTag = typeof props.contentTag === 'string' ? resolveComponent(props.contentTag as string) : props.contentTag
142+
const contentTag = typeof props.contentTag === 'string' ? props.contentTag as string : props.contentTag
143143

144144
if (!props.tag) {
145145
const trigger = h(slot[0] as any, {
@@ -161,7 +161,7 @@ const TippyComponent = defineComponent({
161161
: trigger
162162
}
163163

164-
const tag = typeof props.tag === 'string' ? resolveComponent(props.tag as string) : props.tag
164+
const tag = typeof props.tag === 'string' ? props.tag as string : props.tag
165165

166166
return h(tag, { ref: elem, 'data-v-tippy': '' }, slots.content ? [
167167
slot,

0 commit comments

Comments
 (0)