feat(frontend): expose id via scoped slot in FormField
When using FormField with custom slot content, the slotted element
needs access to the generated inputId to ensure the label's for
attribute matches the input's id. This exposes the id via the
default slot: <template #default="{ id }">
This commit is contained in:
parent
5ca600506b
commit
ac2f14945b
|
|
@ -76,7 +76,7 @@ defineExpose({
|
|||
</label>
|
||||
|
||||
<div :class="controlClasses">
|
||||
<slot>
|
||||
<slot :id="inputId">
|
||||
<input
|
||||
:id="inputId"
|
||||
ref="inputRef"
|
||||
|
|
|
|||
Loading…
Reference in New Issue