Skip to content

Commit

Permalink
fixes zero innerwidth check which causes wrong semicollapsible mode (S…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarkus authored Apr 24, 2020
1 parent bcaf324 commit f3778a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/navigation/services/semi-collapsed-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SemiCollapsibleNavigationClass {
// set this.isSemiCollapsed to true for mobile
if (
this.semiCollapsible &&
window.innerWidth !== 0 &&
window.innerWidth < CSS_BREAKPOINTS.desktopMinWidth
) {
this.setCollapsed(true);
Expand Down

0 comments on commit f3778a3

Please sign in to comment.