Skip to content

Commit

Permalink
fix(module: menu): initial state of being collapsed not reflected in …
Browse files Browse the repository at this point in the history
…menu

When Menu is in Sider, Initial state of being collapsed not reflected in menu.

Co-authored-by: Micah Osborne <[email protected]>
Co-authored-by: Diego Frata <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2020
1 parent e5db74a commit 71ad3e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/menu/Menu.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ protected override void OnInitialized()
if (Parent != null)
{
Parent.OnCollapsed += CollapseUpdated;
CollapseUpdated(Parent.Collapsed);
}

SetClass();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
"babel-core": "^6.26.3",
"babel-preset-es2015": "^6.24.1",
"babelify": "^8.0.0",
"browserify": "^16.5.0",
"browserify": "^16.5.2",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.2.0",
"gulp-clean-css": "^4.3.0",
"gulp-less": "^4.0.1",
"gulp-rename": "^2.0.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify": "^3.0.2",
"husky": "^4.2.3",
"lint-staged": "^10.2.11",
"tsify": "^4.0.1",
"tsify": "^4.0.2",
"typescript": "^3.8.3",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0"
Expand Down

0 comments on commit 71ad3e4

Please sign in to comment.