Skip to content

Commit 668d8ae

Browse files
committed
fix on navigate
1 parent 7563bd2 commit 668d8ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/event_horizon_web/components/command_bar.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,12 @@ defmodule EventHorizonWeb.CommandBar do
335335
this.hide();
336336
navigator.clipboard.writeText(window.location.href);
337337
} else if (action === "go-back") {
338-
this.hide();
338+
this._isOpen = false;
339+
this.el.style.display = "none";
339340
window.history.back();
340341
} else if (action === "go-forward") {
341-
this.hide();
342+
this._isOpen = false;
343+
this.el.style.display = "none";
342344
window.history.forward();
343345
} else if (action === "scroll-top") {
344346
this.hide();

0 commit comments

Comments
 (0)