From dedf943f344025c6f3a4d144017b143c7c7b656e Mon Sep 17 00:00:00 2001 From: Victor Cazanave Date: Sun, 19 Apr 2020 14:01:47 +0800 Subject: [PATCH] fix checkbox --- src/checkbox-svg-map.jsx | 1 + 1 file changed, 1 insertion(+) 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));