Skip to content

Commit 6eb4d8f

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/ini-1.3.7
2 parents 0137581 + a52b88d commit 6eb4d8f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/examples/simple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pageClass: example-page
88
<template>
99

1010
<div style="height: 500px; width: 100%">
11-
<div style="height: 200px overflow: auto;">
11+
<div style="height: 200px; overflow: auto;">
1212
<p>First marker is placed at {{ withPopup.lat }}, {{ withPopup.lng }}</p>
1313
<p>Center is at {{ currentCenter }} and the zoom is: {{ currentZoom }}</p>
1414
<button @click="showLongText">

src/components/LIcon.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ export default {
9292
9393
mounted() {
9494
this.parentContainer = findRealParent(this.$parent);
95-
96-
propsBinder(this, this.$parent.mapObject, this.$options.props);
95+
if (!this.parentContainer) {
96+
throw new Error('No parent container with mapObject found for LIcon');
97+
}
98+
propsBinder(this, this.parentContainer.mapObject, this.$options.props);
9799
98100
this.observer = new MutationObserver(() => {
99101
this.scheduleHtmlSwap();

0 commit comments

Comments
 (0)