react-leaflet-draw
react-leaflet-draw copied to clipboard
draw polygon can't end
when running the example, and using the draw-polygon. after clicking the "first point to close shape", the dashed line is still there.
the console also says "Uncaught TypeError: Cannot read property '_onChange' of undefined" on edit-control.js:46
I think it's a bug.
in line 34 of react-leaflet-draw/example/edit-control.js,
it should be _onCreated = (e) => {}
, not _onCreated(e) {}
. then the issue is solved