Browse Source

Merge branch 'fix-vue-destroyed-error' into 'main'

Vue: fix component destroy error

See merge request chartwerk/core!23
pull/2/head
rozetko 2 years ago
parent
commit
cff26e5b48
  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