drafts: Fix sidebar menu not closing when clicking elsewhere on page.

This commit is contained in:
juliaBichler01 2021-11-25 17:02:19 +01:00 committed by GitHub
parent 0ae375e0f9
commit eaf1fa8fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ mock_esm("../../static/js/stream_popover", {
hide_topic_popover: noop,
hide_all_messages_popover: noop,
hide_starred_messages_popover: noop,
hide_drafts_popover: noop,
hide_streamlist_sidebar: noop,
});

View File

@ -1313,6 +1313,7 @@ export function hide_all_except_sidebars(opts) {
stream_popover.hide_topic_popover();
stream_popover.hide_all_messages_popover();
stream_popover.hide_starred_messages_popover();
stream_popover.hide_drafts_popover();
hide_user_sidebar_popover();
hide_user_info_popover();
hide_playground_links_popover();