From b7c89cd79050d3c11868aaffc9e75d4b60e426bb Mon Sep 17 00:00:00 2001 From: Paul Tsupikoff Date: Mon, 12 Aug 2019 15:33:37 +0300 Subject: [PATCH] Correctly handle dynamically created Bootstrap tooltips Problem: there are a lot of tooltips in staking UI that are located in dynamically created DOM, which are currently not initialized correctly. Solution: initialize tooltips on with selector parameter. --- apps/block_scout_web/assets/js/lib/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/js/lib/tooltip.js b/apps/block_scout_web/assets/js/lib/tooltip.js index a22da61349..0c29a92770 100644 --- a/apps/block_scout_web/assets/js/lib/tooltip.js +++ b/apps/block_scout_web/assets/js/lib/tooltip.js @@ -1,5 +1,5 @@ import $ from 'jquery' $(function () { - $('[data-toggle="tooltip"]').tooltip() + $('body').tooltip({ selector: '[data-toggle="tooltip"]' }) })