DEV: form-kit improvements (#27966)

- correctly support @title on fields
- correctly support @subtitle on fields
- improves error message when a field name is incorrect in assertions
This commit is contained in:
Joffrey JAFFEUX
2024-07-18 10:30:18 +02:00
committed by GitHub
parent bb54270e92
commit 1aa24f83bb
6 changed files with 70 additions and 4 deletions

View File

@@ -16,7 +16,13 @@
<form.Field @title="Before" @name="before" as |field|>
<field.Input @before="https://" />
</form.Field>
<form.Field @title="Secret" @name="secret" as |field|>
<form.Field
@title="Secret"
@subtitle="Another secret"
@name="secret"
@description="An important password"
as |field|
>
<field.Password />
</form.Field>
</Form>