mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Do not emit aria-invalid="false"
attributes for inputs without errors.
This commit is contained in:
parent
bd71279050
commit
32bfb9503d
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module SimpleForm
|
|||
input_html_options[:required] = has_required?
|
||||
input_html_options[:'aria-required'] = has_required? || nil
|
||||
|
||||
input_html_options[:'aria-invalid'] = has_errors?
|
||||
input_html_options[:'aria-invalid'] = has_errors? || nil
|
||||
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue