Steps for reproducing error:
- Click "Location" button to open map modal
- (Optional) Just to make sure Marker coordinates are being added to the Point field, click the Marker button and add a Marker to the map
- Close the map modal
- Open the map modal again
- Click the Marker button and add a Marker to the map
Coordinates for the Marker are not added to the Point field
Issue is caused by attempt to stop error "Map container is already initialized." from occurring .
Workaround is for React, but works for plain Javascript as well:
PaulLeCam/react-leaflet#1133