Skip to content

Commit 1bad36a

Browse files
authored
Fix destroy method not unsetting chart ref
1 parent ca79967 commit 1bad36a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vue3-apexcharts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ const vueApexcharts = defineComponent({
157157

158158
const destroy = () => {
159159
chart.value.destroy();
160+
chart.value = null;
160161
};
161162

162163
const updateSeries = (newSeries, animate) => {

0 commit comments

Comments
 (0)