Skip to content

Commit b1f4f44

Browse files
committed
closes #294
1 parent 57dd5f2 commit b1f4f44

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-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.3.0",
3+
"version": "6.3.1",
44
"main": "index.js",
55
"module": "dist/vue-tippy.mjs",
66
"unpkg": "dist/vue-tippy.iife.js",

src/composables/useTippy.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,11 @@ export function useTippy(
265265
}
266266
}
267267

268-
onUnmounted(() => {
269-
destroy()
270-
})
268+
if (vm) {
269+
onUnmounted(() => {
270+
destroy()
271+
})
272+
}
271273

272274
if (isRef(opts) || isReactive(opts)) {
273275
watch(opts, refresh, { immediate: false })

0 commit comments

Comments
 (0)