Open
Description
Is this a regression?
- No
The previous version in which this bug was not present was
No response
Description
On the documentation, it reads:
However, even when not using the ng-template, the items are always destroyed when the menu is closed.
I would like to have the items eagerly loaded, and on the menu closed, only hiding the items instead of destroying them.
Reproduction
Steps to reproduce:
- Got to the documentation page: https://material.angular.io/components/menu/overview
- On the basic menu
,
search for Item 1 on the page elements. You wont find the element. - Open the basic menu and search again. This time you will find the menu item:
- Close the menu and search again, the menu item will be gone.
Expected Behavior
I expect to see the mat items eagerly loaded, and only hidden when the mat menu is closed.
Actual Behavior
Mat items are always lazy-loaded. Mat items are destroyed when the menu is closed.
Environment
- Angular: 14.2.4
- CDK/Material: 14.1.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows