0๐
โ
I managed to make a workaround by placing the event listener removers to reset, and doing this.chart.notifyPlugins('reset')
before this.chart.destroy()
, so I can check if (chart.canvas)
on plugin destroy. This is however just a workaround and I should not have to rely on manual removing, so I filed a bug ticket too.
Source:stackexchange.com