lib/coprl/presenters/dsl/components/multi_select.rb in coprl-3.0.0.beta.4 vs lib/coprl/presenters/dsl/components/multi_select.rb in coprl-3.0.0.beta.5

- old
+ new

@@ -14,12 +14,12 @@ end def check_option(**attribs, &block) @options << CheckOption.new(parent: self, name: @name, - tag: @tag, - **attribs.delete_if{ |k,v| [:tag, :name].include?(k) }, &block) + input_tag: @input_tag, + **attribs.delete_if{ |k,v| [:tag, :name, :input_tag].include?(k) }, &block) end class CheckOption < EventBase attr_reader :selected, :disabled @@ -31,10 +31,10 @@ @selected = attribs.delete(:selected){ true } @disabled = attribs.delete(:disabled) self.checkbox(name: "#{attribs[:name]}[]", value: @value, text: @text, - tag: tag, + input_tag: self.input_tag, checked: @selected, disabled: @disabled, &block) expand! end