Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/ArcherContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const defaultSvgContainerStyle = {
height: '100%',
top: 0,
left: 0,
pointerEvents: 'none',
};

function rectToPoint(rect: ClientRect) {
Expand Down Expand Up @@ -327,14 +328,14 @@ export class ArcherContainer extends React.Component<Props, State> {
}}
>
<div style={{ ...this.props.style, position: 'relative' }} className={this.props.className}>
<div style={{ height: '100%' }} ref={this.storeParent}>
{this.props.children}
</div>

<svg style={this.svgContainerStyle()}>
<defs>{this.generateAllArrowMarkers()}</defs>
{SvgArrows}
</svg>

<div style={{ height: '100%' }} ref={this.storeParent}>
{this.props.children}
</div>
</div>
</ArcherContainerContextProvider>
);
Expand Down