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:
kolaente 2026-01-10 21:21:03 +01:00
parent 5ca600506b
commit ac2f14945b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ defineExpose({
</label>
<div :class="controlClasses">
<slot>
<slot :id="inputId">
<input
:id="inputId"
ref="inputRef"