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 <body> with selector parameter.
pull/2551/head
Paul Tsupikoff 5 years ago
parent 4573fc44ad
commit b7c89cd790
No known key found for this signature in database
GPG Key ID: DF5159A3A5F09D21
  1. 2
      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"]' })
})

Loading…
Cancel
Save