Skip to content

Commit 677a689

Browse files
Copilotrenemadsen
andcommitted
Fix mtx-select dropdown z-index issues in modals for Angular 21
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent e1c0271 commit 677a689

6 files changed

Lines changed: 16 additions & 0 deletions

File tree

eform-client/src/app/modules/advanced/modules/navigation-menu/components/menu-custom/navigation-menu-custom-dropdown/navigation-menu-custom-dropdown.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ <h3 mat-dialog-title>{{'New dropdown' | translate}}</h3>
44
<mat-label>{{'Security groups' | translate}}</mat-label>
55
<mtx-select
66
dropdownPosition="bottom"
7+
appendTo="body"
78
[(ngModel)]="customDropdownModel.securityGroupsIds"
89
[bindValue]="'id'"
910
[bindLabel]="'name'"

eform-client/src/app/modules/advanced/modules/navigation-menu/components/menu-custom/navigation-menu-custom-link/navigation-menu-custom-link.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ <h3 mat-dialog-title>{{ 'New custom link' | translate }}</h3>
55
<mat-label>{{ 'Security groups' | translate }}</mat-label>
66
<mtx-select
77
dropdownPosition="bottom"
8+
appendTo="body"
89
[(ngModel)]="customLinkModel.securityGroupsIds"
910
[bindValue]="'id'"
1011
[bindLabel]="'name'"

eform-client/src/app/modules/advanced/modules/navigation-menu/components/menu-item/navigation-menu-item-edit/navigation-menu-item-edit.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ <h3 mat-dialog-title>{{'Edit menu entry' | translate}}</h3>
55
<mat-label>{{'Security groups' | translate}}</mat-label>
66
<mtx-select
77
dropdownPosition="bottom"
8+
appendTo="body"
89
[(ngModel)]="item.securityGroupsIds"
910
[bindValue]="'id'"
1011
[bindLabel]="'name'"

eform-client/src/app/modules/eforms/components/eform-create-modal/eform-create-modal.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ <h3 mat-dialog-title>{{ 'Create eForm' | translate }}</h3>
77
<mtx-select
88
class="custom"
99
dropdownPosition="bottom"
10+
appendTo="body"
1011
[(ngModel)]="eFormCreateModel.tagIds"
1112
[bindValue]="'id'"
1213
[bindLabel]="'name'"

eform-client/src/app/modules/eforms/eform-visual-editor/components/eform-visual-editor-elements/field/visual-editor-field-modal/visual-editor-field-modal.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ <h3 mat-dialog-title>{{ (isFieldSelected ? 'Edit field' : 'New field') | transla
1414
<mtx-select
1515
class="custom"
1616
dropdownPosition="bottom"
17+
appendTo="body"
1718
[clearable]="false"
1819
[bindLabel]="'name'"
1920
[bindValue]="'id'"

eform-client/src/scss/styles.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,3 +1521,14 @@ app-footer {
15211521
border: none !important;
15221522

15231523
}
1524+
1525+
// Fix z-index for ng-select/mtx-select dropdowns in modals (Angular 21)
1526+
// Material dialogs have z-index 1000, so dropdown panels need to be higher
1527+
.ng-dropdown-panel {
1528+
z-index: 10000 !important;
1529+
}
1530+
1531+
// Ensure cdk-overlay-container (used by mtx-select with appendTo="body") is above dialogs
1532+
.cdk-overlay-container .ng-dropdown-panel {
1533+
z-index: 10000 !important;
1534+
}

0 commit comments

Comments
 (0)