mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user