From 397092bff52505230ae38835aa732b8115baf1f6 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Sun, 20 Jul 2025 11:46:59 +0200 Subject: [PATCH] [NPM] update choices.js to 11.1.0 to set searchResultLimit -1 --- frontend/main.ts | 2 ++ frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/main.ts b/frontend/main.ts index 62fa9ba..19a3464 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -413,6 +413,7 @@ function initNewChoice(select: HTMLInputElement) { steering_person.setAttribute("required", "required"); } const choice = new Choices(select, { + searchResultLimit: -1, searchFields: ["label", "value", "customProperties.searchableText"], removeItemButton: true, loadingText: "Wird geladen...", @@ -425,6 +426,7 @@ function initNewChoice(select: HTMLInputElement) { return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; }, callbackOnInit: function () { + console.log(this); this._currentState.items.forEach(function (obj) { if (boat_in_ottensheim && obj.customProperties) { if (obj.customProperties.is_racing) { diff --git a/frontend/package.json b/frontend/package.json index 0b42352..dbd423c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ "vite-plugin-static-copy": "^0.13.1" }, "dependencies": { - "choices.js": "^10.2.0", + "choices.js": "^11.1.0", "d3": "^7.8.5", "terser": "^5.21.0" }