1
0
Fork 0
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:
Lucas Mazza 2016-07-01 14:29:26 -03:00
parent bd71279050
commit 32bfb9503d
No known key found for this signature in database
GPG key ID: C009F9A6BE4A44CB

View file

@ -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