Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

browser_history: If changing_hash, don't set to hash_before_overlay.

Aman Agrawal40acc9b27c78
diff --git a/static/js/browser_history.js b/static/js/browser_history.js
index 0d9de382d3c..38a732e4892 100644
--- a/static/js/browser_history.js
+++ b/static/js/browser_history.js
@@ -55,7 +55,7 @@ export function update(new_hash) {
}
export function exit_overlay() {
- if (hash_util.is_overlay_hash(window.location.hash)) {
+ if (hash_util.is_overlay_hash(window.location.hash) && !state.changing_hash) {
ui_util.blur_active_element();
const new_hash = state.hash_before_overlay || "#";
update(new_hash);