react-leaflet-editable-popup
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -111,3 +111,7 @@ "use strict"; | ||
} else { | ||
_this.thePopup._source.remove(); | ||
if (_this.props.v2) { | ||
_this.thePopup.leafletElement._source.remove(); | ||
} else { | ||
_this.thePopup._source.remove(); | ||
} | ||
} | ||
@@ -132,9 +136,19 @@ }); | ||
setTimeout(function () { | ||
_this2.thePopup._source.openPopup(); | ||
if (_this2.props.v2) { | ||
_this2.thePopup.leafletElement._source.openPopup(); | ||
} else { | ||
_this2.thePopup._source.openPopup(); | ||
} | ||
}, 1); | ||
} | ||
this.setState({ | ||
nametag: this.props.nametag || this.thePopup._source.nametag | ||
}); | ||
if (this.props.v2) { | ||
this.setState({ | ||
nametag: this.props.nametag || this.thePopup.leafletElement._source.nametag | ||
}); | ||
} else { | ||
this.setState({ | ||
nametag: this.props.nametag || this.thePopup._source.nametag | ||
}); | ||
} | ||
} | ||
@@ -141,0 +155,0 @@ }, { |
{ | ||
"name": "react-leaflet-editable-popup", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "An editable popup component for react-leaflet", | ||
"main": "build/ReactLeafletEditablePopup.js", | ||
"main": "build/EditablePopup.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "start": "webpack --watch", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
862821
237
0