Fix invalid "hint" attribute in forms

Using `hint: false` was generating an input with `hint="false"` instead
of generating no hint at all.
This commit is contained in:
Javi Martín
2020-06-25 17:23:30 +02:00
parent f49745d7ba
commit c5f4cd6229
2 changed files with 43 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ class ConsulFormBuilder < FoundationRailsHelper::FormBuilder
define_method field do |attribute, options = {}|
label_with_hint(attribute, options.merge(label_options: label_options_for(options))) +
super(attribute, options.merge(
label: false, hint: false,
label: false, hint: nil,
aria: { describedby: help_text_id(attribute, options) }
))
end