Skip to content

Commit 02b0a1a

Browse files
authored
avoids re-initialization of ApexCharts
1 parent 0486c0f commit 02b0a1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vue3-apexcharts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ const vueApexcharts = defineComponent({
116116

117117
const init = async () => {
118118
await nextTick();
119+
120+
if (chart.value) {
121+
return;
122+
}
119123

120124
const newOptions = {
121125
chart: {

0 commit comments

Comments
 (0)