Skip to content

Commit 42f6663

Browse files
authored
Merge pull request #203 from gfoidl/directives-unmount-fix
Fix (v-c-tooltip, v-c-popover): tooltip / popover not hided on unmount of component
2 parents ffdef8b + c978d04 commit 42f6663

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/coreui-vue/src/directives/v-c-popover.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
})
9797
}
9898
},
99-
unmounted(binding: DirectiveBinding): void {
99+
unmounted(_el: HTMLElement, binding: DirectiveBinding): void {
100100
const popover = binding.arg && document.getElementById(binding.arg)
101101
popover && popover.remove()
102102
},

packages/coreui-vue/src/directives/v-c-tooltip.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
})
9393
}
9494
},
95-
beforeUnmount(binding: DirectiveBinding): void {
95+
beforeUnmount(_el: HTMLElement, binding: DirectiveBinding): void {
9696
const tooltip = binding.arg && document.getElementById(binding.arg)
9797
tooltip && tooltip.remove()
9898
},

0 commit comments

Comments
 (0)