We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8f772 commit 9830b9aCopy full SHA for 9830b9a
js/src/sidebar.js
@@ -211,7 +211,7 @@ class Sidebar extends BaseComponent {
211
_initializeBackDrop() {
212
return new Backdrop({
213
className: CLASS_NAME_BACKDROP,
214
- isVisible: this._mobile,
+ isVisible: this._isMobile(),
215
isAnimated: true,
216
rootElement: this._element.parentNode,
217
clickCallback: () => this.hide()
@@ -294,6 +294,7 @@ class Sidebar extends BaseComponent {
294
EventHandler.on(window, EVENT_RESIZE, () => {
295
if (this._isMobile() && this._isVisible()) {
296
this.hide()
297
+ this._backdrop = this._initializeBackDrop()
298
}
299
})
300
0 commit comments