Angular To Support menu/dialog/overlay on parentElement instead of document always
Feature Description
AngularJS was giving us option to select alert dialog on a parent element from document query selector. https://material.angularjs.org/latest/demo/dialog
The same is missing in angular. $mdDialog.alert() .parent(angular.element(document.querySelector('#popupContainer'))) .clickOutsideToClose(true)
Use Case
Some application would disable overflow at window/document level and capture the overflow of body.
For such applications, the menu and headers should be available to access while dialog/even-mat-menu is opened on main body section.
That way user is not blocked to get out of menu/dialog before selecting some other item on header. Ex. search, more, or profile details on header.
Especially this will be useful on corporate projects where there will be single UI to handle lot of data.
Associated discussion is here: https://stackoverflow.com/questions/67551037/angularjs-dialog-has-option-to-select-parent-element-reference-seems-angular-2
Duplicate of https://github.com/angular/components/issues/4612.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.