VictorCazanave / react-svg-map

A set of React.js components to display an interactive SVG map
https://victorcazanave.github.io/react-svg-map/
MIT License
229 stars 48 forks source link

selectedLocationIds not working on checkbox svg map #58

Open sina-salahshour opened 2 years ago

sina-salahshour commented 2 years ago

I'm trying to add initial value to map, but the type is missing in type script, and also react shows Invariant Violation error. error:

Unhandled Runtime Error

Invariant Violation: Minified React error #188; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Call Stack
p
node_modules/react-svg-map/lib/index.js (9:297)
findDOMNode
node_modules/react-svg-map/lib/index.js (9:88932)
value
node_modules/react-svg-map/lib/index.js (1:5955)
commitLifeCycles
node_modules/react-dom/cjs/react-dom.development.js (20663:0)
commitLayoutEffects
node_modules/react-dom/cjs/react-dom.development.js (23426:0)