Skip to content

Commit

Permalink
fix: adjust marker render function
Browse files Browse the repository at this point in the history
  • Loading branch information
DonNicoJs committed Oct 3, 2020
1 parent 7382da3 commit 7649900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LMarker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import { onMounted, ref, reactive, inject } from "vue";
import { onMounted, ref, reactive, inject, h } from "vue";
import { remapEvents, propsBinder, debounce } from "../utils.js";
import { props, setup as markerSetup } from "../functions/marker";
Expand Down Expand Up @@ -43,9 +43,9 @@ export default {
});
return { ready };
},
render: function (h) {
render() {
if (this.ready && this.$slots.default) {
return h("div", { style: { display: "none" } }, this.$slots.default);
return h("div", { style: { display: "none" } }, this.$slots.default());
}
return null;
},
Expand Down

0 comments on commit 7649900

Please sign in to comment.