Performance: Enable virtual scrolling for large custom field selects (#10708)

This commit is contained in:
david-loe
2025-08-28 17:07:34 +02:00
committed by GitHub
parent 4e0f5dff95
commit d9459ac37f
2 changed files with 2 additions and 0 deletions

View File

@@ -51,6 +51,7 @@
<ng-select #fieldSelects
class="paperless-input-select rounded-end"
[items]="getSelectOptionsForField(atom.field)"
[virtualScroll]="getSelectOptionsForField(atom.field)?.length > 100"
bindLabel="label"
bindValue="id"
[(ngModel)]="atom.value"

View File

@@ -19,6 +19,7 @@
[class.private]="isPrivate"
[clearable]="allowNull"
[items]="items"
[virtualScroll]="items?.length > 100"
[addTag]="allowCreateNew && addItemRef"
addTagText="Add item"
i18n-addTagText="Used for both types, correspondents, storage paths"