tooltips: Fix doubling of keyboard-icon.

This fixes a bug where the default fade-in animation of bootstrap tool
tips caused the tool tip over the keyboard-icon to change shape slightly
while fading away.

Fixes #11766.
This commit is contained in:
YashRE42
2019-06-08 15:45:33 +05:30
committed by Tim Abbott
parent bc4e7627d6
commit ae6e99ae34

View File

@@ -266,7 +266,9 @@ exports.initialize_kitchen_sink_stuff = function () {
$('.copy_message[data-toggle="tooltip"]').tooltip();
$('#keyboard-icon').tooltip();
// We disable animations here because they can cause the tooltip
// to change shape while fading away in weird way.
$('#keyboard-icon').tooltip({animation: false});
$("body").on("mouseover", ".message_edit_content", function () {
$(this).closest(".message_row").find(".copy_message").show();