2 Commits

Author SHA1 Message Date
25df7a935c Merge pull request '[BUGFIX] set max items in choices.js after searching' (#1113) from show-daniels into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 24m12s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 15m49s
Reviewed-on: #1113
2025-07-20 12:02:13 +02:00
Marie Birner
55c0647b55 [BUGFIX] set max items in choices.js after searching
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
2025-07-20 11:57:45 +02:00
3 changed files with 8 additions and 3 deletions

View File

@@ -413,7 +413,7 @@ function initNewChoice(select: HTMLInputElement) {
steering_person.setAttribute("required", "required"); steering_person.setAttribute("required", "required");
} }
const choice = new Choices(select, { const choice = new Choices(select, {
searchResultLimit: -1, searchResultLimit: 100,
searchFields: ["label", "value", "customProperties.searchableText"], searchFields: ["label", "value", "customProperties.searchableText"],
removeItemButton: true, removeItemButton: true,
loadingText: "Wird geladen...", loadingText: "Wird geladen...",
@@ -426,7 +426,6 @@ function initNewChoice(select: HTMLInputElement) {
return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`;
}, },
callbackOnInit: function () { callbackOnInit: function () {
console.log(this);
this._currentState.items.forEach(function (obj) { this._currentState.items.forEach(function (obj) {
if (boat_in_ottensheim && obj.customProperties) { if (boat_in_ottensheim && obj.customProperties) {
if (obj.customProperties.is_racing) { if (obj.customProperties.is_racing) {

View File

@@ -21,7 +21,7 @@
"vite-plugin-static-copy": "^0.13.1" "vite-plugin-static-copy": "^0.13.1"
}, },
"dependencies": { "dependencies": {
"choices.js": "^11.1.0", "choices.js": "^10.2.0",
"d3": "^7.8.5", "d3": "^7.8.5",
"terser": "^5.21.0" "terser": "^5.21.0"
} }

6
package-lock.json generated Normal file
View File

@@ -0,0 +1,6 @@
{
"name": "rowt",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}