Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop css classes from building up and duplicating

  • Loading branch information...
commit 14472d2e20a5a85134faa1064536f50c4ed2ebfc 1 parent 2830fd3
@ebonical authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/simple_form/inputs/base.rb
View
2  lib/simple_form/inputs/base.rb
@@ -102,7 +102,7 @@ def reflection_or_attribute_name
def html_options_for(namespace, css_classes)
html_options = options[:"#{namespace}_html"] || {}
css_classes << html_options[:class] if html_options.key?(:class)
- html_options[:class] = css_classes
+ html_options[:class] = css_classes.flatten.uniq
html_options
end
Please sign in to comment.
Something went wrong with that request. Please try again.