Make sure this shit actually builds

This commit is contained in:
MotorTruck1221 2024-10-18 04:32:18 -06:00
parent b4e4252d5c
commit d9d7e79f0e
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -11,7 +11,7 @@ interface SelectOptions {
}
interface Selects {
select: boolean;
name: string;
name?: string;
multiple?: boolean;
options?: SelectOptions[];
}
@ -40,7 +40,7 @@ const { title, description, input, select, button } = Astro.props;
}
<!-- Same with dropdown selections -->
{select.select &&
<select id={select.name.replace(/[^a-zA-Z0-9]/g, '').toLowerCase()} class="text-md w-full h-10 p-2 bg-input border border-input-border-color rounded-md text-input-text" multiple={select.multiple} name={select.name}>
<select id={select.name?.replace(/[^a-zA-Z0-9]/g, '').toLowerCase()} class="text-md w-full h-10 p-2 bg-input border border-input-border-color rounded-md text-input-text" multiple={select.multiple} name={select.name}>
{select.options!.map((option) => (
<option disabled={option.disabled} value={option.value}>{option.name}</option>
))}