We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e2b89a commit eac34baCopy full SHA for eac34ba
src/Chartjs/assets/dist/controller.js
@@ -20,6 +20,10 @@ class default_1 extends Controller {
20
if (!(this.element instanceof HTMLCanvasElement)) {
21
throw new Error('Invalid element');
22
}
23
+ if(Chart.getChart(this.element)) {
24
+ // Chart is already connected
25
+ return;
26
+ }
27
const payload = this.viewValue;
28
if (Array.isArray(payload.options) && 0 === payload.options.length) {
29
payload.options = {};
0 commit comments