Skip to content

Commit 1fc69c4

Browse files
committed
Fix NavigationView.currInitWidth expanding from minimal display mode
1 parent bb4aecc commit 1fc69c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/NavigationView/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class NavigationView extends React.Component<NavigationViewProps, Navigat
152152
if (this.state.currDisplayMode !== "compact") {
153153
this.setState({
154154
currDisplayMode: "compact",
155-
currInitWidth: 0
155+
currInitWidth: this.props.initWidth
156156
});
157157
}
158158
} else {

0 commit comments

Comments
 (0)