Use a form field, for example:
<Form.Field
id='form-input-control-error-email'
control={Input}
label='Email'
placeholder='[email protected]'
error={false}
/>
The aria-invalid attribute should not be present (or should be false)
The aria-invalid attribute is set to true:
<input aria-describedby="form-input-control-error-email-error-message" aria-invalid="true" placeholder="[email protected]" id="form-input-control-error-email" type="text">
1.2.0
Thanks for reporting. It seems that condition there should be simpler 馃惐
src/collections/Form/FormField.js
'aria-describedby': ariaDescribedBy,
- 'aria-invalid': error !== undefined ? true : undefined,
+ 'aria-invalid': error ? true : undefined,
Would you like to submit a PR?
Done, I added some tests as well
A fix was released in [email protected] 馃帀