message_edit: Add hide event for clipboard tooltip after copy.

The clipboard tooltip for the "copy and close" button was incorrectly staying visible after the
copy event.  Fix this by explicitly hiding tooltips in the click handler.

Fixes #16328.
This commit is contained in:
Aryan Shridhar
2020-09-13 00:34:24 +05:30
committed by GitHub
parent c21818e093
commit 4e8067aadc

View File

@@ -329,6 +329,9 @@ exports.initialize = function () {
row.find(".alert-msg").text(i18n.t("Copied!")); row.find(".alert-msg").text(i18n.t("Copied!"));
row.find(".alert-msg").css("display", "block"); row.find(".alert-msg").css("display", "block");
row.find(".alert-msg").delay(1000).fadeOut(300); row.find(".alert-msg").delay(1000).fadeOut(300);
if ($(".tooltip").is(":visible")) {
$(".tooltip").hide();
}
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
}); });