C
C
cb77772021-12-27 13:11:28
JavaScript
cb7777, 2021-12-27 13:11:28

How to make it so that when you go to ng-select, you can immediately enter text?

Good day! There are several consecutive ng-selects on the form; when transitioning, you need to make it possible to enter text without additional clicking on the drop-down list. How to implement such functionality?

<ng-select
          tabIndex="1"
          [items]="cityType"
          style="overflow: visible"
          bindLabel="name"
          bindValue="id"
          notFoundText="Не найдено"
          placeholder="Выберите..."
          required
          loadingText="Загрузка..."
          (focus)="$event"
          [selectOnTab]="true"
          [loading]="loadingCityType"
          [(ngModel)]="selectedCityTypeID"
          (change)="onSelectCityType(selectedCityTypeID)">
      </ng-select>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question