Skip to content

Commit 3cb9837

Browse files
authored
fix(PopConfirmButton): can't remove pop in table extension button (#4356)
* fix: can't remove the pop * chore: bump version 8.9.4-beta05 * test: 更新单元测试
1 parent eb94df8 commit 3cb9837

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

+1-1
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.4-beta04</Version>
4+
<Version>8.9.4-beta05</Version>
55
</PropertyGroup>
66

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function init(id) {
4949
clearTimeout(handler);
5050
const hasConfirm = el.hasAttribute('data-bb-confirm');
5151
if (hasConfirm) {
52-
if (confirm.popover.tip) {
52+
if (confirm.popover._element) {
5353
confirm.popover.dispose();
5454
}
5555
delete confirm.popover;

test/UnitTest/Components/TreeViewTest.cs

+1
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ public async Task ToggleExpand_Ok()
957957
{
958958
pb.Add(a => a.EnableKeyboard, true);
959959
pb.Add(a => a.Items, items);
960+
pb.Add(a => a.ScrollIntoViewOptions, new ScrollIntoViewOptions() { Behavior = ScrollIntoViewBehavior.Auto });
960961
});
961962
await cut.InvokeAsync(() => cut.Instance.TriggerKeyDown("ArrowRight"));
962963
cut.Contains("node-icon visible fa-solid fa-caret-right fa-rotate-90");

0 commit comments

Comments
 (0)