最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - @ng-select opens and closes immediately on mouse click - Stack Overflow

programmeradmin2浏览0评论

Using @ng-select (Angular 19 / @ng-select/[email protected]) with Lazy Loading.

If I click the dropdown with the mouse it opens up and closes immediately. If I hold the mouse button pressed it stays open until I release the mouse button. If it has focus and I open it via ENTER it stays open.

<ng-select
  [ngModel]="selectedChannel"
  [items]="allDataBuffer"
  [virtualScroll]="true"
  [loading]="loading"
  (change)="onChannelChange($event)"
  placeholder="Kanal auswählen"
  appendTo="body"
  (scroll)="onScroll($event)"
  (scrollToEnd)="onScrollToEnd()">

  <ng-template ng-option-tmp let-item="item">
    <div> {{ item.label }}</div>
  </ng-template>
</ng-select>

发布评论

评论列表(0)

  1. 暂无评论