From 1057de2f4d961d92c639f53deb30e200a3a09252 Mon Sep 17 00:00:00 2001 From: Aliaksandr Shylau Date: Fri, 5 Feb 2021 18:07:33 +0300 Subject: [PATCH] Move destroy behaviour from before to after --- src/components/GChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GChart.vue b/src/components/GChart.vue index 7fd1de5..1af26b4 100644 --- a/src/components/GChart.vue +++ b/src/components/GChart.vue @@ -78,7 +78,7 @@ export default { if (this.resizeDebounce > 0) window.addEventListener('resize', debounce(this.drawChart, this.resizeDebounce)) }, - beforeDestroy () { + afterDestroy () { if (this.chartObject && typeof this.chartObject.clearChart === 'function') { this.chartObject.clearChart() }