mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
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:
@@ -76,7 +76,7 @@ defineExpose({
|
||||
</label>
|
||||
|
||||
<div :class="controlClasses">
|
||||
<slot>
|
||||
<slot :id="inputId">
|
||||
<input
|
||||
:id="inputId"
|
||||
ref="inputRef"
|
||||
|
||||
Reference in New Issue
Block a user