From aac6cda62d9dcc2eeecfea016e6d11561222719a Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 6 Feb 2020 15:02:16 +0300 Subject: [PATCH] Fixed #188 - Chart.vue : Error in v-on handler: "TypeError: this.emit is not a function" --- src/components/chart/Chart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chart/Chart.vue b/src/components/chart/Chart.vue index 831b4f564..dd60bd7dd 100644 --- a/src/components/chart/Chart.vue +++ b/src/components/chart/Chart.vue @@ -67,7 +67,7 @@ export default { const dataset = this.chart.getDatasetAtEvent(event); if (element && element[0] && dataset) { - this.emit('select', {originalEvent: event, element: element[0], dataset: dataset}); + this.$emit('select', {originalEvent: event, element: element[0], dataset: dataset}); } } },