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

171
Visualizações
Change Angular Dropdown's bound value on closing Dropdown, rather than on changing the value

I have an Angular dropdown reading and setting values from a SQL Server via Typescript intermediary class. Its current behavior is to alter the Typescript the moment the user clicks in the dropdown, closing the dropdown and reloading the dynamic page. Users find this annoying, and would prefer to be able to click freely within the dropdown menu without altering the bound typescript value, ONLY changing it when they click out of the menu, closing it. Is there a known way to accomplish this?

<mat-form-field>
            <mat-label>Year</mat-label>
            <mat-select formControlName="year" (selectionChange)="isStandardOrCurrentCost()">
                <mat-option *ngFor="let year of getAvailableYears()" [value]="year">{{year}}</mat-option>
            </mat-select>
            <control-messages [control]="form.get('year')"></control-messages>
</mat-form-field>
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