Permalink
Browse files

Collapse the nav onscroll only for the valid expanded state

This will help to prevent the navigation from being collapsed during
navigation initialization, a time when the navigation is expeced to be
invisibly expanded.
  • Loading branch information...
kabel committed Aug 12, 2015
1 parent 0346b86 commit 27bfc763aeab6ad57c15f90e4a9798f646e74442
Showing with 1 addition and 1 deletion.
  1. +1 −1 wdn/templates_4.0/scripts/navigation.js
@@ -568,7 +568,7 @@ define(['jquery', 'wdn', 'modernizr', 'require'], function($, WDN, Modernizr, re
return;
}
- if (isFull && currentState !== 0) {
+ if (isFull && currentState === 1) {
Plugin.collapse();
}

0 comments on commit 27bfc76

Please sign in to comment.