normalized relations picker maxSelect value

This commit is contained in:
Gani Georgiev
2026-01-06 18:19:01 +02:00
parent 25c044a3a2
commit 98510103c3
36 changed files with 233 additions and 186 deletions

View File

@@ -29,7 +29,7 @@
let isLoadingSelected = false;
let isReloadingRecord = {};
$: maxSelect = field?.maxSelect || null;
$: maxSelect = field?.maxSelect || 1;
$: collectionId = field?.collectionId;
@@ -45,7 +45,7 @@
$: canLoadMore = lastItemsCount == batchSize;
$: canSelectMore = maxSelect <= 0 || maxSelect > selected.length;
$: canSelectMore = maxSelect > selected.length;
export function show() {
filter = "";