Skip to content

Commit 9ff9fc8

Browse files
committed
fix: fix for the PL nav incorrectly auto-closing in certain situations
1 parent 59ef2ce commit 9ff9fc8

File tree

1 file changed

+3
-1
lines changed
  • packages/uikit-workshop/src/scripts/components/pl-nav

1 file changed

+3
-1
lines changed

packages/uikit-workshop/src/scripts/components/pl-nav/pl-nav.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ class Nav extends BaseComponent {
244244

245245
if (data.event !== undefined && data.event === 'patternLab.pageClick') {
246246
try {
247-
self.cleanupActiveNav();
247+
if (window.matchMedia("(min-width: calc(42em))").matches && self.layoutMode !== 'vertical'){
248+
self.cleanupActiveNav();
249+
}
248250
} catch(error){
249251
console.log(error);
250252
}

0 commit comments

Comments
 (0)