diff --git a/packages/demo-vue3/src/router.js b/packages/demo-vue3/src/router.js
index 44d97a77..bd05ded1 100644
--- a/packages/demo-vue3/src/router.js
+++ b/packages/demo-vue3/src/router.js
@@ -37,6 +37,13 @@ export const demos = [
label: 'Directive manual',
},
},
+ {
+ path: '/directive/create-tooltip',
+ component: () => import('./views/directive/CreateTooltip.vue'),
+ meta: {
+ label: 'createTooltip',
+ },
+ },
{
path: '/component/demo1',
component: () => import('./views/component/DropdownDemo1.vue'),
diff --git a/packages/demo-vue3/src/views/directive/CreateTooltip.vue b/packages/demo-vue3/src/views/directive/CreateTooltip.vue
new file mode 100644
index 00000000..014c2c77
--- /dev/null
+++ b/packages/demo-vue3/src/views/directive/CreateTooltip.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
diff --git a/packages/floating-vue/src/directives/v-tooltip.ts b/packages/floating-vue/src/directives/v-tooltip.ts
index 20468035..59dc5201 100644
--- a/packages/floating-vue/src/directives/v-tooltip.ts
+++ b/packages/floating-vue/src/directives/v-tooltip.ts
@@ -65,7 +65,7 @@ function ensureDirectiveApp () {
return this.directives.map((directive) => {
return h(TooltipDirective, {
...directive.options,
- shown: directive.shown.value || directive.options.shown,
+ shown: directive.shown || directive.options.shown,
key: directive.id,
})
})
@@ -126,7 +126,7 @@ export function destroyTooltip (el) {
}
}
-export function bind (el, { value, oldValue, modifiers }) {
+export function bind (el, { value, modifiers }) {
const options = getOptions(el, value, modifiers)
if (!options.content || getDefaultConfig(options.theme || 'tooltip', 'disabled')) {
destroyTooltip(el)