Minor improvements to select

This commit is contained in:
Ronan Berder
2025-08-18 09:52:09 +08:00
parent 97a53f1a67
commit 29600bd3ac
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1005,7 +1005,7 @@
@apply font-medium tracking-tight;
}
p {
@apply text-muted-foreground;
@apply text-muted-foreground break-all;
}
}
footer {
+4 -1
View File
@@ -124,7 +124,10 @@
}
let initialOption = options.find(opt => opt.dataset.value === input.value);
if (!initialOption && options.length > 0) initialOption = options[0];
if (!initialOption) {
initialOption = options.find(opt => opt.dataset.value !== undefined) ?? options[0];
}
updateValue(initialOption, false);