Put hidden input after the collection to fix layout issue
This commit is contained in:
parent
5aaa775d89
commit
05110a9c65
|
@ -142,7 +142,7 @@ module SimpleForm
|
|||
# server if all checkboxes are unchecked.
|
||||
hidden = template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)
|
||||
|
||||
wrap_rendered_collection(hidden << rendered_collection, options)
|
||||
wrap_rendered_collection(rendered_collection << hidden, options)
|
||||
end
|
||||
|
||||
# Wrapper for using simple form inside a default rails form.
|
||||
|
|
Loading…
Reference in New Issue