Remove useless ref
This commit is contained in:
parent
0494bebec7
commit
2dcdf769f1
1 changed files with 1 additions and 3 deletions
|
@ -18,7 +18,6 @@ interface ISVGState {
|
||||||
|
|
||||||
export class SVG extends React.PureComponent<ISVGProps> {
|
export class SVG extends React.PureComponent<ISVGProps> {
|
||||||
public state: ISVGState;
|
public state: ISVGState;
|
||||||
public svg: React.RefObject<SVGSVGElement>;
|
|
||||||
|
|
||||||
constructor(props: ISVGProps) {
|
constructor(props: ISVGProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
@ -29,7 +28,6 @@ export class SVG extends React.PureComponent<ISVGProps> {
|
||||||
} as Value,
|
} as Value,
|
||||||
tool: TOOL_PAN
|
tool: TOOL_PAN
|
||||||
};
|
};
|
||||||
this.svg = React.createRef<SVGSVGElement>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -63,7 +61,7 @@ export class SVG extends React.PureComponent<ISVGProps> {
|
||||||
height: 120
|
height: 120
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg ref={this.svg} {...properties}>
|
<svg {...properties}>
|
||||||
{ children }
|
{ children }
|
||||||
<Selector selected={this.props.selected} />
|
<Selector selected={this.props.selected} />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue