Make sure this shit actually builds
This commit is contained in:
parent
b4e4252d5c
commit
d9d7e79f0e
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue