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 bab862f commit ac5145fCopy full SHA for ac5145f
src/Chartjs/assets/dist/controller.js
@@ -11,8 +11,7 @@ class default_1 extends Controller {
11
this.chart = null;
12
}
13
connect() {
14
- if(Chart.getChart(this.element)) {
15
- // Chart is already connected
+ if (this.element instanceof HTMLCanvasElement && Chart.getChart(this.element)) {
16
return;
17
18
if (!isChartInitialized) {
src/Chartjs/assets/src/controller.ts
@@ -27,7 +27,7 @@ export default class extends Controller {
27
private chart: Chart | null = null;
28
29
30
31
// Chart is already connected
32
33
0 commit comments