We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d84854a commit a529f1cCopy full SHA for a529f1c
1 file changed
lib/react/rendering_context.rb
@@ -92,7 +92,7 @@ def remove_nodes_from_args(args)
92
def run_child_block(is_outer_scope)
93
result = yield
94
result = result.to_s if result.try :acts_as_string?
95
- @buffer << result if result.is_a?(String) || (result.is_a?(Element) && @buffer.empty?)
+ @buffer << result if result.is_a?(String) || (result.is_a?(React::Element) && @buffer.empty?)
96
raise_render_error(result) if is_outer_scope && @buffer != [result]
97
end
98
0 commit comments