form-field-without-what-the-form-needs
This fails the run. Where it is wrong about your code, // ramonda-check-ignore <reason> on the line says so, and the reason is printed on every run.
Reported when a field inside a @ramonda/form form is written without name, value, oninput, onblur or aria-invalid, a component used there is not handed one of them, or the form cannot be recognised.
A field inside a @ramonda/form form is written with each attribute the form needs, by name:
const email = this.form.fields.email.$;
<input
name={email.name}
value={email.inputValue}
oninput={email.oninput}
onblur={email.onblur}
aria-invalid={email.invalid}
/>
The form is the one in <form onsubmit={this.form.submit}>, where form = this.use(Form, …).
A component that takes the attributes as props is handed every one of them wherever it is used
inside a form.
Next
- All rules — the other checks this one runs beside.
- Checking your app — how to run it, and what it proves.