Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

515
Views
ng-select dropdown placed behind the modal on first page load

I use ng-select on my site, but the dropdown list is placed behind the modal when the page first loads. However, if I reload the page, the list is placed correctly this time. I use Angular 8.

<ng-select #selectSociety notFoundText="Aucun résultat" [items]="allOptions !== undefined ? allOptions : (societiesObs | async)"
                                        [loading]="societiesLoading" loadingText='Chargement...'
                                        [minTermLength]="2" bindLabel="name" bindValue="id" placeholder="Société"
                                        typeToSearchText="Entrez au moins 2 caractères" [typeahead]="societiesInput"
                                        formControlName="society_id"
                                        class="society quotation edit-select">

                                        <ng-template ng-footer-tmp>
                                            <div class="create-new"
                                                (click)="createSociety()">
                                                Ajouter une entreprise
                                            </div>
                                        </ng-template>

                                        <ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm">
                                            {{item.name}}
                                        </ng-template>
</ng-select>

and css of the ng-select.

.ng-select-wrapper {
    margin-bottom: 0;
    position: relative;
}
.ng-select {
    padding-bottom: 0;
    margin-bottom: 1.25em;
    
    .ng-select-container {
        .ng-value-container {
            align-self: center;
        }
    }
    .ng-arrow-wrapper {
        .ng-arrow {
            border-width: 4px 4px 2.5px;
        }
    }
}

.ng-select.billing .ng-select-container {
    background-color: #f0f9fe;
    border: none;
}
.ng-select.quotation .ng-select-container {
    background-color: #f0f9fe;
    border: none;

    &:hover {
        background-color: #cbf0ff;
    }
}
.ng-dropdown-panel {
    z-index: 3000 !important;
    .ng-dropdown-footer {
        cursor: pointer;
        &:hover {
            background-color: #f0f9fe;
        }
    }
}

.ng-select.edit-select {
    .ng-option {
        i {
            display: none;
            &:hover {
                color: $secondary;
            }
        }
        &:hover {
            i {
                display: block;
            }
        }
    }

enter image description here

enter image description here

I do not know how to solve this problem.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!