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 e1a1675 commit a5c0204Copy full SHA for a5c0204
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
@@ -29,7 +29,7 @@ export default class extends Controller {
29
private chart: Chart | null = null;
30
31
32
33
// Chart is already connected
34
35
0 commit comments