Browse Source

Vue: fix component destroy error

pull/2/head
rozetko 2 years ago
parent
commit
6055a3d399
  1. 4
      src/VueChartwerkPodMixin.ts

4
src/VueChartwerkPodMixin.ts

@ -32,7 +32,9 @@ export default {
this.renderChart(); this.renderChart();
}, },
destroyed() { destroyed() {
this.pod.removeEventListeners(); if(this.pod) {
this.pod.removeEventListeners();
}
this.pod = undefined; this.pod = undefined;
}, },
methods: { methods: {

Loading…
Cancel
Save