Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-b-tooltip: tooltip title not reactive to title attribute #3480

Closed
akhchan99 opened this issue Jun 10, 2019 · 3 comments · Fixed by #3908

Comments

@akhchan99
Copy link

commented Jun 10, 2019

I have a button which toggle the title between "show password" and "hide password"
If the title is not being used with v-b-tooltip directive, it'll toggle between them. But when its used with v-b-tooltip directive, the text doesn't change (unless I move my mouse away and move back onto the button)

Is it a bug? or are there any workaround?

@tmorehouse

This comment has been minimized.

Copy link
Member

commented Jun 10, 2019

This is a known limitation with the current tooltip implementation and using the title attribute to get the title (as it is read from the rendered element). You can pass a title value as the argument to the directive (see https://bootstrap-vue.js.org/docs/directives/tooltip#title-content) and not use the title attribute. Or switch to the b-tooltip component and pass it the title via a prop or slot.

@tmorehouse tmorehouse changed the title tooltip toggle not updated v-b-tooltip: tooltip title not reactive to title attribute Jun 12, 2019

@jackmu95 jackmu95 closed this Jul 1, 2019

@tmorehouse

This comment has been minimized.

Copy link
Member

commented Aug 24, 2019

PR #3908 should have this fixed (once it is completed and merged into 2.0.0 stable branch)

tmorehouse added a commit that referenced this issue Aug 28, 2019
@tmorehouse

This comment has been minimized.

Copy link
Member

commented Sep 7, 2019

BootstrapVue v2.0.0 stable has been released. See https://bootstrap-vue.js.org/docs/misc/changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.