mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
popovers: Hide opened popover on navigating back.
Hides popover if it remains open and an overlay such as the settings UI is opened via the browser back button. Fixes: #7230.
This commit is contained in:
committed by
Tim Abbott
parent
5ec855967d
commit
aab0eeb5cc
@@ -49,6 +49,8 @@ exports.active_modal = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.open_overlay = function (opts) {
|
exports.open_overlay = function (opts) {
|
||||||
|
popovers.hide_all();
|
||||||
|
|
||||||
if (!opts.name || !opts.overlay || !opts.on_close) {
|
if (!opts.name || !opts.overlay || !opts.on_close) {
|
||||||
blueslip.error('Programming error in open_overlay');
|
blueslip.error('Programming error in open_overlay');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user