We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b50c49 commit 5a306f9Copy full SHA for 5a306f9
src/components/LIcon.vue
@@ -127,7 +127,7 @@ export default {
127
128
createIcon () {
129
// If only html of a divIcon changed, we can just replace the DOM without the need of recreating the whole icon
130
- if (this.htmlSwapNeeded && !this.recreationNeeded && this.iconObject) {
+ if (this.htmlSwapNeeded && !this.recreationNeeded && this.iconObject && this.parentContainer.mapObject.getElement()) {
131
this.parentContainer.mapObject.getElement().innerHTML = this.$el.innerHTML;
132
133
this.htmlSwapNeeded = false;
0 commit comments