Skip to content

Commit

Permalink
fix checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorCazanave committed Apr 19, 2020
1 parent f0cdb19 commit dedf943
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/checkbox-svg-map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit dedf943

Please sign in to comment.