Skip to content

vBTooltip: updating tooltip title to an empty string does not update tooltip text #2781

@a-kriya

Description

@a-kriya

Describe the bug

The title prop of the tooltip is reactive, but setting it to an empty string '' does not update the tooltip text and instead preserves the last non-empty value.

This only happens when using the directive form of the tooltip, and not the BTooltip component which does update to show an empty tooltip. I think it should be hidden when the title is empty, which would be compatible with BV.

The repro sandbox uses both the directive and component where the difference in behavior for this edge case can be noticed by clicking on the buttons.

Reproduction

https://stackblitz.com/edit/vue-zdmrd5kv?file=src%2FApp.vue

Used Package Manager

npm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale-exemptUse this to prevent auto-stalling of an issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions