Skip to content

Commit

Permalink
fix(dropdown): z-index set when appended to body (#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso authored and maxokorokov committed Apr 30, 2019
1 parent 8ba2228 commit ec73fc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ export class NgbDropdown implements OnInit, OnDestroy {
// Override some styles to have the positionning working
renderer.setStyle(bodyContainer, 'position', 'absolute');
renderer.setStyle(dropdownMenuElement, 'position', 'static');
renderer.setStyle(bodyContainer, 'z-index', '1050');

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

0 comments on commit ec73fc2

Please sign in to comment.