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 59ef2ce commit 9ff9fc8Copy full SHA for 9ff9fc8
packages/uikit-workshop/src/scripts/components/pl-nav/pl-nav.js
@@ -244,7 +244,9 @@ class Nav extends BaseComponent {
244
245
if (data.event !== undefined && data.event === 'patternLab.pageClick') {
246
try {
247
- self.cleanupActiveNav();
+ if (window.matchMedia("(min-width: calc(42em))").matches && self.layoutMode !== 'vertical'){
248
+ self.cleanupActiveNav();
249
+ }
250
} catch(error){
251
console.log(error);
252
}
0 commit comments