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

This commit is contained in:
david-loe authored and GitHub committed 2025-08-28 15:07:34 +00:00
1 parent 4e0f5dff95
commit d9459ac37f
2 files changed
+2

No files matched your search

@@ -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"
@@ -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"