app/components/lookbook/params/field/component.rb in lookbook-2.0.0.beta.7 vs app/components/lookbook/params/field/component.rb in lookbook-2.0.0.beta.8
- old
+ new
@@ -15,10 +15,10 @@
Editor::Component.add_styles(param.input, styles)
escaped_value = json_escape(param.value.to_s)
wrapper_attrs = {
data: {"param-input": param.input},
- "x-data": "paramsInputComponent({name: '#{param.name}', value: '#{escaped_value}'})"
+ "x-data": "paramsInputComponent({name: \"#{param.name}\", value: \"#{escaped_value}\"})"
}
@rendered_input = tag.div(**wrapper_attrs) { html.html_safe }
end
protected