Skip to content

Commit 28a8265

Browse files
fix(chart): missing BootstrapBlazor class (#593)
* fix(chart):修复初始化时产生的未定义错误 * chore: bump version 9.0.3 --------- Co-authored-by: Argo Zhang <argo@live.ca>
1 parent dbab480 commit 28a8265

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.2</Version>
4+
<Version>9.0.3</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import EventHandler from "../../../BootstrapBlazor/modules/event-handler.js"
66

77
Chart.register(ChartDataLabels);
88

9+
if (window.BootstrapBlazor === void 0) {
10+
window.BootstrapBlazor = {};
11+
}
12+
913
if (window.BootstrapBlazor.Chart === void 0) {
1014
const elementMap = new Map();
1115
window.BootstrapBlazor.Chart = new class {

0 commit comments

Comments
 (0)