Skip to content

BTooltip directive not updating content when title changes #2273

@IGx89

Description

@IGx89

Describe the bug

Given the following BTooltip directive usage:

<div v-b-tooltip :title="msg">Hover over me</div>

If I change the value of msg after the tooltip is initially rendered, the tooltip still contains the old value.

This is a regression introduced in v0.24.13 by #2170. That PR made changes to the updated lifecycle method to not update the tooltip's content if it's unchanged. That logic is only checking the binding however and not the title attribute/result of the resolveContent call.

Reproduction

https://stackblitz.com/edit/github-d5nonv?file=src%2Fcomponents%2FComp.vue

Used Package Manager

npm

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions