Reputation: 301
I've tried using position fixed and z index, but the select remains fixed and when scrolled, it overlaps other content in the dialog
Upvotes: 7
Views: 8216
Reputation: 324
<ng-select **[appendTo]="'body'"**>...</ng-select>
::ng-deep .ng-dropdown-panel {
z-index: 9999999!important;
}
Upvotes: 3
Reputation: 2911
Default implementation of ng-select append these options with element, which when opening in dialog box depends on dialog box size. To display this outside of this dialog box or any parent element, need to append this with browser body.
<ng-select [searchable]="false" [appendTo]="'body'">
Upvotes: 13