mirror of
https://github.com/hunvreus/basecoat.git
synced 2026-11-12 13:18:22 +00:00
Minor improvements to select
This commit is contained in:
@@ -1005,7 +1005,7 @@
|
||||
@apply font-medium tracking-tight;
|
||||
}
|
||||
p {
|
||||
@apply text-muted-foreground;
|
||||
@apply text-muted-foreground break-all;
|
||||
}
|
||||
}
|
||||
footer {
|
||||
|
||||
+4
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user