Skip to content

Commit ab8e288

Browse files
authored
refactor(registerBootstrapBlazorModule): reset init field when items is empty (#5528)
* fix: 修复 id 为空后无法重新注册问题 * chore: bump version 9.4.5
1 parent 486c0e5 commit ab8e288

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/BootstrapBlazor/BootstrapBlazor.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.4.5-beta01</Version>
4+
<Version>9.4.5</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/wwwroot/modules/utility.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ export function registerBootstrapBlazorModule(name, identifier, callback) {
828828
this._items = this._items.filter(item => item !== id);
829829
}
830830
if (this._items.length === 0 && cb) {
831+
this._init = false;
831832
cb();
832833
}
833834
}

0 commit comments

Comments
 (0)