mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 23:43:38 +00:00
Blur all links after clicking.
The links don’t have to stay focused and produce unintended side effects.
This commit is contained in:
committed by
Tim Abbott
parent
660144a79d
commit
6ed7ba8935
@@ -128,6 +128,11 @@ $(function () {
|
||||
e.stopPropagation();
|
||||
popovers.hide_all();
|
||||
});
|
||||
$("body").on("click", "a", function (e) {
|
||||
if (document.activeElement === this) {
|
||||
ui.blur_active_element();
|
||||
}
|
||||
});
|
||||
|
||||
$(window).on("focus", function (e) {
|
||||
meta.focusing = true;
|
||||
|
||||
Reference in New Issue
Block a user