Skip to content

Commit 64a428b

Browse files
committed
fix(Sidebar): fix hide method
1 parent 943c8e4 commit 64a428b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/src/sidebar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ class Sidebar extends BaseComponent {
134134
this._element.classList.add(CLASS_NAME_HIDE)
135135
}
136136

137+
if (this._isVisible()) {
138+
this._element.classList.add(CLASS_NAME_HIDE)
139+
}
140+
137141
if (this._isMobile()) {
138142
this._removeBackdrop()
139143
}

0 commit comments

Comments
 (0)