Skip to content

Commit 202aeb4

Browse files
authored
Merge pull request #379 from MrTanoshii/main
fix: retain tooltip visibility on title update
2 parents b307f1c + d4c4e41 commit 202aeb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/directives/BTooltip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ const BTooltip: Directive<HTMLElement> = {
7272

7373
if (title !== '') {
7474
const instance = Tooltip.getInstance(el)
75-
instance?.hide()
75+
instance?.toggle()
7676
el.setAttribute('data-bs-original-title', title || '')
7777
el.setAttribute('title', '')
78+
instance?.toggle()
7879
}
7980
},
8081
unmounted(el) {

0 commit comments

Comments
 (0)