Skip to content

Commit

Permalink
fix(sidebar): expand if not compacted or collapsed (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored and tibing-old-email committed Nov 14, 2018
1 parent 2988a4b commit 33a0990
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class NbSidebarComponent implements OnChanges, OnInit, OnDestroy {
this.collapse();
this.responsiveState = NbSidebarComponent.RESPONSIVE_STATE_MOBILE;
}
if (!isCollapsed && !isCollapsed && prev.width < current.width) {
if (!isCollapsed && !isCompacted && prev.width < current.width) {
this.expand();
this.fixed = false;
this.responsiveState = NbSidebarComponent.RESPONSIVE_STATE_PC;
Expand Down

0 comments on commit 33a0990

Please sign in to comment.