app/components/lookbook/tab_panels/panel/component.rb in lookbook-1.0.0.beta.7 vs app/components/lookbook/tab_panels/panel/component.rb in lookbook-1.0.0.beta.8
- old
+ new
@@ -1,9 +1,9 @@
module Lookbook
class TabPanels::Panel::Component < Lookbook::BaseComponent
def initialize(name:, id: nil, **html_attrs)
- @name = name
- @id = "#{id || "panel-#{name}"}"
+ @name = name
+ @id = (id || "panel-#{name}").to_s
super(**html_attrs)
end
end
end