Skip to content

Commit

Permalink
Make sure that react helper always closes the div tag
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jul 19, 2018
1 parent f5bb7d0 commit a2cf194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/reactjs_helper.rb
Expand Up @@ -8,7 +8,7 @@ def mount_react_component(name, selector, data = [])
def react(name, data = {})
uid = unique_html_id('react')
capture do
concat(tag('div', :id => uid))
concat(content_tag('div', nil, :id => uid))
concat(javascript_tag("ManageIQ.component.componentFactory('#{j(name)}', '##{j(uid)}', #{data.to_json})"))
end
end
Expand Down

0 comments on commit a2cf194

Please sign in to comment.