mirror of https://github.com/zulip/zulip.git
Blur all links after clicking.
The links don’t have to stay focused and produce unintended side effects.
This commit is contained in:
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;
|
||||
|
|
Loading…
Reference in New Issue