lib upgrade (2.4.2 -> 2.5.1) seems to break canvas reusing

UI Components for Vue
Post Reply
LauLauCoco
Posts: 3
Joined: 20 Aug 2021, 12:47

20 Aug 2021, 13:26

Hi,
I have upgrade from 2.4.2 to 2.5.1 and Chart.js 3.5.0. My Pie Charts who work fine before give now an error "canvas must be destroyed before reused". I've try to use destroy function directly without success as Chart.js recommend, but There is no Chart object in my code only reactive data in Chart tag.

By adding this.chart = null; beetwen the this.chart.destroy() and the this.initChart() in the reinit function of Chart.vue of your lib, this seems to solve the issue.

Thanks
Regards

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests