mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
popovers: Fix popovers not being hidden on scrolling.
This commit is contained in:
@@ -1022,7 +1022,7 @@ export function register_click_handlers() {
|
||||
{
|
||||
let last_scroll = 0;
|
||||
|
||||
$(".app").on("scroll", () => {
|
||||
$(document).on("scroll", () => {
|
||||
if (suppress_scroll_hide) {
|
||||
suppress_scroll_hide = false;
|
||||
return;
|
||||
|
@@ -36,6 +36,10 @@ mock_esm("../src/stream_popover", {
|
||||
hide_streamlist_sidebar: noop,
|
||||
});
|
||||
|
||||
set_global("document", {
|
||||
to_$: () => $("document-stub"),
|
||||
});
|
||||
|
||||
const people = zrequire("people");
|
||||
const user_status = zrequire("user_status");
|
||||
const popovers = zrequire("popovers");
|
||||
|
Reference in New Issue
Block a user