Skip to content

Commit

Permalink
fix: #105 the wrapper are modified by appendChild
Browse files Browse the repository at this point in the history
  • Loading branch information
JserWang committed May 6, 2019
1 parent 2d40347 commit c1c7f2a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/Overlay/Custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ const CustomHOC = WrappedComponent => class extends BaseOverlay {
const { context } = this;
const { children } = this.props;
return (
<div ref={this.getContainer}>
<WrappedComponent
map={context.getMapInstance()}
{...this.props}
/>
{ children }
<div>
<div ref={this.getContainer}>
<WrappedComponent
map={context.getMapInstance()}
{...this.props}
/>
{ children }
</div>
</div>
);
}
Expand Down

0 comments on commit c1c7f2a

Please sign in to comment.