diff --git a/js/src/offcanvas.js b/js/src/offcanvas.js index 359a024f3..0ae5dbfda 100644 --- a/js/src/offcanvas.js +++ b/js/src/offcanvas.js @@ -206,14 +206,6 @@ class Offcanvas extends BaseComponent { this.hide() }) - - EventHandler.on(window, 'resize', () => { - // Add this check to help js be aligned with css changes on responsive offcanvas - if (this._isShown && getComputedStyle(this._element).position !== 'fixed') { - // this._backdrop.hide() - this.hide() - } - }) } // Static