You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have buttons/controls that for example should only show a tooltip if enabled (not disabled). To do this I am setting the tooltip based on a state variable. Here is an example from my paging component
so if the state of the component is the lastPage it sets the tooltip to undefined. What is interesting is in this case for the first/last actions these are undefined initially and sure enough the early return on the
if (binding.value === null || binding.value === undefined)
return;
Seems to skip building it, and then once they are enabled and I set tooltip text they will display text. I also verified that if I change the text this works fine.
So I think the issue is if the binding.value changes to be undefined you need to remove the class for 'vue-tooltip' and only add it if it gets by this point in the processing.... ie something like
So I have buttons/controls that for example should only show a tooltip if enabled (not disabled). To do this I am setting the tooltip based on a state variable. Here is an example from my paging component
so if the state of the component is the lastPage it sets the tooltip to undefined. What is interesting is in this case for the first/last actions these are undefined initially and sure enough the early return on the
Seems to skip building it, and then once they are enabled and I set tooltip text they will display text. I also verified that if I change the text this works fine.
So I think the issue is if the binding.value changes to be undefined you need to remove the class for 'vue-tooltip' and only add it if it gets by this point in the processing.... ie something like
The text was updated successfully, but these errors were encountered: