Skip to content

Commit

Permalink
fix: fix for the PL nav incorrectly auto-closing in certain situations
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Jan 29, 2019
1 parent 59ef2ce commit 9ff9fc8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ class Nav extends BaseComponent {

if (data.event !== undefined && data.event === 'patternLab.pageClick') {
try {
self.cleanupActiveNav();
if (window.matchMedia("(min-width: calc(42em))").matches && self.layoutMode !== 'vertical'){
self.cleanupActiveNav();
}
} catch(error){
console.log(error);
}
Expand Down

0 comments on commit 9ff9fc8

Please sign in to comment.