lib/trestle/form/fields/collection_select.rb in trestle-0.9.3 vs lib/trestle/form/fields/collection_select.rb in trestle-0.9.4
- old
+ new
@@ -14,10 +14,10 @@
def field
builder.raw_collection_select(name, collection, value_method, text_method, options, html_options)
end
def default_html_options
- Trestle::Options.new(class: ["form-control"], disabled: readonly?, data: { enable_select2: true })
+ Trestle::Options.new(class: ["form-control"], disabled: disabled? || readonly?, data: { enable_select2: true })
end
end
end
end
end