diff --git a/src/checkbox-svg-map.jsx b/src/checkbox-svg-map.jsx index 9c2b4d7..4a973f7 100644 --- a/src/checkbox-svg-map.jsx +++ b/src/checkbox-svg-map.jsx @@ -22,6 +22,7 @@ class CheckboxSVGMap extends React.Component { if (this.props.selectedLocationIds) { // Cannot use ref on SvgMap (with React 16.0.0) because it is a functional component // https://5a046bf5a6188f4b8fa4938a--reactjs.netlify.app/docs/refs-and-the-dom.html#refs-and-functional-components + // TODO: Find a way to test it const svgNode = ReactDOM.findDOMNode(this); const selectedLocations = this.props.selectedLocationIds.map(locationId => svgNode.getElementById(locationId));