Skip to content

Commit 1fc69c4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NavigationView/index.tsx

+1-1
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)