Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

522
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda