parent
9cd202bc4f
commit
c142a73e22
|
@ -66,6 +66,7 @@ module SimpleForm
|
||||||
|
|
||||||
@input_html_classes = @html_classes.dup
|
@input_html_classes = @html_classes.dup
|
||||||
@input_html_options = html_options_for(:input, input_html_classes).tap do |o|
|
@input_html_options = html_options_for(:input, input_html_classes).tap do |o|
|
||||||
|
o['aria-required'] = true if has_required?
|
||||||
o[:readonly] = true if has_readonly?
|
o[:readonly] = true if has_readonly?
|
||||||
o[:disabled] = true if has_disabled?
|
o[:disabled] = true if has_disabled?
|
||||||
o[:autofocus] = true if has_autofocus?
|
o[:autofocus] = true if has_autofocus?
|
||||||
|
|
Loading…
Reference in New Issue