different behavior in development vs production build #6717
-
when manually adding elements with minimal repro: two pages, both render a repo: https://github.com/stefanprobst/vue-d3-issue <script lang="ts" setup>
import { select } from "d3";
import { onMounted } from "vue";
onMounted(() => {
const colors = ["dodgerblue", "tomato", "orange"];
select("#graph")
.append("circle")
.attr("fill", colors[Math.floor(Math.random() * colors.length)])
.attr("cx", Math.floor(Math.random() * 300))
.attr("cy", Math.floor(Math.random() * 150))
.attr("r", 50);
});
</script>
<template>
<svg id="graph-container"><g id="graph"></g></svg>
</template> <!-- first-page.vue and second-page.vue -->
<script lang="ts" setup>
import TestSvg from "@/components/test-svg.vue";
</script>
<template>
<main><test-svg /></main>
</template> do i need to clean something up somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
i also tried the same with |
Beta Was this translation helpful? Give feedback.
-
Please open an isue for this. |
Beta Was this translation helpful? Give feedback.
Please open an isue for this.