Skip to content

Commit 706e219

Browse files
committed
fix
1 parent dbcafb8 commit 706e219

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/src/offcanvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
246246
})
247247

248248
EventHandler.on(window, EVENT_RESIZE, () => {
249-
for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {
249+
for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=\\:offcanvas]')) {
250250
if (getComputedStyle(element).position !== 'fixed') {
251251
Offcanvas.getOrCreateInstance(element).hide()
252252
}

0 commit comments

Comments
 (0)