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
UITooltip doesn't work inside some VueComponents #204
Comments
This is how it's supposed to work to my understanding. You don't wrap a tooltip inside a button, the button just activates it. |
No, I don't think so. Unless you mean tooltips for
|
UiTooltip doesn't work inside Ui-Tabs and v-for |
same issue, even workaround doesn't work for me. |
Any workaround or solution for that issue mr. @JosephusPaye ? |
This has been fixed in d8edc31. The workaround @mcmillenb posted can be used until the next version. |
Hi all.I have ui-tooltip inside for loop.It doesn' t work.Have anybody solution for it? |
In the upcoming version, you can also use a CSS selector for the trigger: <ui-button id="edit-btn">Edit</ui-button>
<ui-tooltip trigger="#edit-btn">Select an element to edit</ui-tooltip> To try it: # npm
npm install keen-ui@JosephusPaye/Keen-UI#next
# yarn
yarn add keen-ui@JosephusPaye/Keen-UI#next See the changelog for all changes. |
Released in v1.1.0. |
I tried to add a
<ui-tooltip>
to a<ui-button>
like so:And get an error:
The problem is in UiTooltip.vue:
The
initialize()
method creates a newTooltip
object, passingthis.$parent.$refs[this.trigger],
as the target. However, the UiButton template wraps the content of the button in a div, sothis.$parent
is that wrapper div, and not the root element containing theref
value.This is my workaround for now:
The text was updated successfully, but these errors were encountered: