Skip to content

Commit 5c8f6f1

Browse files
committed
fix(select): empty value
1 parent ec91c0b commit 5c8f6f1

File tree

1 file changed

+1
-0
lines changed
  • packages/forms/src/components-control

1 file changed

+1
-0
lines changed

packages/forms/src/components-control/select.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function validateSelect(astro: AstroGlobal, bind: BindForm<any>) {
3232
const aboutSelect = new AboutFormName(bind, name, parseValue, errorMessage);
3333

3434
if (!validateRequire(aboutSelect, required)) {
35+
aboutSelect.setValue();
3536
return [];
3637
}
3738

0 commit comments

Comments
 (0)