Skip to content

Commit

Permalink
fix(typeahead): 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 0a41501 commit d10df5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typeahead/typeahead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export class NgbTypeahead implements ControlValueAccessor,
this._windowRef.instance.popupClass = this.popupClass;

if (this.container === 'body') {
this._renderer.setStyle(this._windowRef.location.nativeElement, 'z-index', '1055');
this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);
}

Expand Down

0 comments on commit d10df5d

Please sign in to comment.