Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42f6663

Browse files
authored
Merge pull requestcoreui#203 from gfoidl/directives-unmount-fix
Fix (v-c-tooltip, v-c-popover): tooltip / popover not hided on unmount of component
2 parentsffdef8b +c978d04 commit42f6663

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

Lines changed: 1 addition & 1 deletion
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
constpopover=binding.arg&&document.getElementById(binding.arg)
101101
popover&&popover.remove()
102102
},

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

Lines changed: 1 addition & 1 deletion
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
consttooltip=binding.arg&&document.getElementById(binding.arg)
9797
tooltip&&tooltip.remove()
9898
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp