Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit a529f1c

Browse files
committed
[opal-11-dev] Element is resolved to the wrong instance
1 parent d84854a commit a529f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react/rendering_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def remove_nodes_from_args(args)
9292
def run_child_block(is_outer_scope)
9393
result = yield
9494
result = result.to_s if result.try :acts_as_string?
95-
@buffer << result if result.is_a?(String) || (result.is_a?(Element) && @buffer.empty?)
95+
@buffer << result if result.is_a?(String) || (result.is_a?(React::Element) && @buffer.empty?)
9696
raise_render_error(result) if is_outer_scope && @buffer != [result]
9797
end
9898

0 commit comments

Comments
 (0)