ShankyTiwari / ng-material-multilevel-menu

:page_facing_up: Material Multi-Level Menu for Angular Projects
http://plugins.codershood.info/#/plugins/ngmm-plugin
MIT License
98 stars 55 forks source link

Weird behavior on Angular 10 and Material 10 #131

Closed Sampath-Lokuge closed 3 years ago

Sampath-Lokuge commented 4 years ago

Hi,

Use case 1:

expandCollapseStatus = 'expand';

You can see that it has weird behaviors:

  1. Need to click 2 times to expand/collapse.

  2. When I clicked the top menu item it expands the bottom menu item and vice versa

  3. I can't collapse all menu items

Please see the video:

Youtube Video: https://youtu.be/LsRAl25Xv1I

Use case 2:

expandCollapseStatus = 'collapse';

You can see that it has weird behaviors:

  1. Need to click 2 times to expand.

  2. When I clicked the inner item then it auto collapsed the parent. i.e. I cannot go to the inner menu items.

Please see the video:

Youtube Video: https://youtu.be/ktBUS9U4BSI

Sample Git repo: https://github.com/Sampath-Lokuge/Angular-10.git

Note: You can see the implementation on app.component.html/ts files.

ShankyTiwari commented 3 years ago

Hi @Sampath-Lokuge, Sorry for the delay.

Thanks for reporting this issue, it was major issue and unfortunately I missed it. I have changed the implementation of this feature slightly, you can find it here, now it should be fixed in 5.0.1.

Let me know in case of any issue.

Thanks