Skip to content

Commit a7528e3

Browse files
authored
bug(PopConfirmButtom): throw exception cause dispose (#4225)
* fix: 更新脚本防止报错 * chore: bump version 8.9.1
1 parent 7d9a6a9 commit a7528e3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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>8.9.1-beta05</Version>
4+
<Version>8.9.1</Version>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">

src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export function init(id) {
4949
clearTimeout(handler);
5050
const hasConfirm = el.hasAttribute('data-bb-confirm');
5151
if (hasConfirm) {
52-
confirm.popover.dispose();
52+
if (confirm.popover.tip) {
53+
confirm.popover.dispose();
54+
}
5355
delete confirm.popover;
5456
}
5557
}, 50);

0 commit comments

Comments
 (0)