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> {
|
||||
public state: ISVGState;
|
||||
public svg: React.RefObject<SVGSVGElement>;
|
||||
|
||||
constructor(props: ISVGProps) {
|
||||
super(props);
|
||||
|
@ -29,7 +28,6 @@ export class SVG extends React.PureComponent<ISVGProps> {
|
|||
} as Value,
|
||||
tool: TOOL_PAN
|
||||
};
|
||||
this.svg = React.createRef<SVGSVGElement>();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -63,7 +61,7 @@ export class SVG extends React.PureComponent<ISVGProps> {
|
|||
height: 120
|
||||
}}
|
||||
>
|
||||
<svg ref={this.svg} {...properties}>
|
||||
<svg {...properties}>
|
||||
{ children }
|
||||
<Selector selected={this.props.selected} />
|
||||
</svg>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue