Skip to content

Commit

Permalink
Merge pull request #1014 from Yelp/u/kkasp/fix-tooltip-lol-its-bootst…
Browse files Browse the repository at this point in the history
…rap-2.3.1

Disable the tooltip animation that is causing a strange problem where you can't get a tooltip when entering from the top of an object
  • Loading branch information
KaspariK authored Jan 13, 2025
2 parents 64c2965 + 6270dce commit 131cdc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tronweb/coffee/views.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ window.isSelected = (current, value) ->
if current == value then "selected" else ""

window.makeTooltips = (root) ->
root.find('.tt-enable').tooltip()
root.find('.tt-enable').tooltip({
# There is some strange behaviour with the tooltip animation in Bootstrap 2
# that causes the object to get into a bad state and not appear as expected.
# Disabling animation is a workaround until we upgrade to Bootstrap 3 (or 4...or 5)
animation: false
})


window.formatName = (name) =>
Expand Down

0 comments on commit 131cdc4

Please sign in to comment.