summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-05-31 15:18:52 -0500
committerClement Ho <ClemMakesApps@gmail.com>2018-05-31 15:18:52 -0500
commit6a2fc6ddd41a1f8d671f2b0a68d5a16439c8f35e (patch)
treef49a6ce3955d1882a243e4137d1805786a4bf3bb
parentf153faa86e5ed3c0fff43f92bcc6121fe79b1070 (diff)
downloadgitlab-ce-6a2fc6ddd41a1f8d671f2b0a68d5a16439c8f35e.tar.gz
Set bootstrap tooltip vue directive to only display on hover
-rw-r--r--app/assets/javascripts/vue_shared/directives/tooltip.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/directives/tooltip.js b/app/assets/javascripts/vue_shared/directives/tooltip.js
index 155e6b6698a..4f2412ce520 100644
--- a/app/assets/javascripts/vue_shared/directives/tooltip.js
+++ b/app/assets/javascripts/vue_shared/directives/tooltip.js
@@ -2,7 +2,9 @@ import $ from 'jquery';
export default {
bind(el) {
- $(el).tooltip();
+ $(el).tooltip({
+ trigger: 'hover',
+ });
},
componentUpdated(el) {