Skip to content

Commit

Permalink
fix(dropdown): ensure popup is shown above modal
Browse files Browse the repository at this point in the history
In case container is 'body'
  • Loading branch information
maxokorokov committed Apr 5, 2022
1 parent 029ac2a commit 0a41501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export class NgbDropdown implements AfterContentInit, OnChanges, OnDestroy {
// Override some styles to have the positioning working
renderer.setStyle(bodyContainer, 'position', 'absolute');
renderer.setStyle(dropdownMenuElement, 'position', 'static');
renderer.setStyle(bodyContainer, 'z-index', '1050');
renderer.setStyle(bodyContainer, 'z-index', '1055');

renderer.appendChild(bodyContainer, dropdownMenuElement);
renderer.appendChild(this._document.body, bodyContainer);
Expand Down

0 comments on commit 0a41501

Please sign in to comment.