Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b26cb4

Browse files
committed
Clone child elements and add a uri prop
1 parent e5c73a2 commit 2b26cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/views/opener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class Opener extends React.Component {
3434
<Portal
3535
key={uri}
3636
ref={c => { this.portals.set(uri, c); }}>
37-
{this.props.children}
37+
{React.cloneElement(this.props.children, {uri})}
3838
</Portal>
3939
);
4040
});

0 commit comments

Comments
 (0)