-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(module:menu): Overlay bug fix & menu renering optimization #1949
Conversation
mark top menu as selected on init do not render non-active overlay submenus
nullable enabled for test project
Codecov Report
@@ Coverage Diff @@
## master #1949 +/- ##
==========================================
+ Coverage 23.92% 27.27% +3.35%
==========================================
Files 487 510 +23
Lines 31920 24346 -7574
Branches 0 229 +229
==========================================
- Hits 7636 6641 -995
+ Misses 24284 17669 -6615
- Partials 0 36 +36
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
* fix(module:overlay): submenu causing crash * fix(module:overlay): submenu causing crash * fix(module:menu): show missing chevron mark top menu as selected on init do not render non-active overlay submenus * tests: common js mock extracted nullable enabled for test project * tests: menu * fix(module:menu): incorrect behavior in layout
…design-blazor#1949) * fix(module:overlay): submenu causing crash * fix(module:overlay): submenu causing crash * fix(module:menu): show missing chevron mark top menu as selected on init do not render non-active overlay submenus * tests: common js mock extracted nullable enabled for test project * tests: menu * fix(module:menu): incorrect behavior in layout
* fix(module:overlay): submenu causing crash * fix(module:overlay): submenu causing crash * fix(module:menu): show missing chevron mark top menu as selected on init do not render non-active overlay submenus * tests: common js mock extracted nullable enabled for test project * tests: menu * fix(module:menu): incorrect behavior in layout
* fix(module:overlay): submenu causing crash * fix(module:overlay): submenu causing crash * fix(module:menu): show missing chevron mark top menu as selected on init do not render non-active overlay submenus * tests: common js mock extracted nullable enabled for test project * tests: menu * fix(module:menu): incorrect behavior in layout
* fix(module:overlay): submenu causing crash * fix(module:overlay): submenu causing crash * fix(module:menu): show missing chevron mark top menu as selected on init do not render non-active overlay submenus * tests: common js mock extracted nullable enabled for test project * tests: menu * fix(module:menu): incorrect behavior in layout
🤔 This is a ...
Fixes #1644
💡 Background and solution
Overlay
was crashing when menu (as part of layout) was expanding with at least 1 submenu open. Solution - no need to render the submenu as overlay when layout menu is expanding. Extra - check onOverlay
to prevent crash, with message to debugger.Missing chevron in submenus. Currently:
Expected:
Parent menu should be selected during initalization if any of its children is selected. Currently:
Expected:
Match css classes with antD.
Add tests for basic menu.
Optimize other tests & typescript scripts.
📝 Changelog
☑️ Self Check before Merge