refactor(Field.astro): handling of labelPosition
This commit is contained in:
parent
8a9f70a254
commit
32dd989fdf
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ const { control } = Astro.props;
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
control.label && (!control.labelPosition || control.labelPosition === 'left') && (
|
control.label && control.labelPosition === 'left' && (
|
||||||
<label for={control.name}>{control.label}</label>
|
<label for={control.name}>{control.label}</label>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ const { control } = Astro.props;
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{
|
{
|
||||||
control.label && control.labelPosition === 'right' ? (
|
control.label && control.labelPosition === 'right' && (
|
||||||
<label for={control.name}>{control.label}</label>
|
<label for={control.name}>{control.label}</label>
|
||||||
) : null
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue