Fixed #188 - Chart.vue : Error in v-on handler: "TypeError: this.emit is not a function"

pull/193/head
cagataycivici 2020-02-06 15:02:16 +03:00
parent bd52f3ce34
commit aac6cda62d
1 changed files with 1 additions and 1 deletions

View File

@ -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});
}
}
},