diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-10-26 14:49:28 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-10-26 14:49:28 +0000 |
commit | 79ec24da6fd591da9343b4928b28475a414d9859 (patch) | |
tree | 91dbd3e62dbb29916c95b25a315625249cd99fa0 /app/assets | |
parent | 359474a29ee925faf51322707f9c11272542cfd7 (diff) | |
download | gitlab-ce-79ec24da6fd591da9343b4928b28475a414d9859.tar.gz |
Update content of visible tooltips
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/vue_shared/directives/tooltip.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/directives/tooltip.js b/app/assets/javascripts/vue_shared/directives/tooltip.js index 4f2412ce520..549d27e96d9 100644 --- a/app/assets/javascripts/vue_shared/directives/tooltip.js +++ b/app/assets/javascripts/vue_shared/directives/tooltip.js @@ -9,6 +9,14 @@ export default { componentUpdated(el) { $(el).tooltip('_fixTitle'); + + // update visible tooltips + const tooltipInstance = $(el).data('bs.tooltip'); + const tip = tooltipInstance.getTipElement(); + tooltipInstance.setElementContent( + $(tip.querySelectorAll('.tooltip-inner')), + tooltipInstance.getTitle(), + ); }, unbind(el) { |