Make Select Widget reflect required

This commit is contained in:
Tim Lorsbach
2026-06-09 10:07:08 +02:00
parent f4c3b42be8
commit f2dcb249c3
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,9 @@ document.addEventListener("alpine:init", () => {
return [];
}
},
get isRequired() {
return (this.schema.required || []).indexOf(this.fieldName) > -1
}
}),
);