Skip to content

Commit 904fd36

Browse files
authored
fix(PopConfirmButton): parameter IsKeepDisabled not work (#7319)
* fix(PopConfirmButton): parameter IsKeepDisabled not work * doc: 更新文档 * chore: bump version 10.1.4-beta05
1 parent 33256b8 commit 904fd36

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"PopoverConfirmsContentDelete": "Delete confirmation button",
309309
"PopoverConfirmsContentDeleteContent": "Are you sure you want to delete the data?",
310310
"PopoverConfirmsIsAsyncTitle": "Asynchronous confirmation",
311-
"PopoverConfirmsIsAsyncIntro": "By setting the <code>IsAsync</code> attribute, the data is submitted asynchronously when the confirm button is clicked",
311+
"PopoverConfirmsIsAsyncIntro": "By setting the <code>IsAsync</code> attribute, the data is submitted asynchronously when the confirm button is clicked. In some specific scenarios, the button needs to remain disabled after asynchronous operation. Please control this using the <code>IsKeepDisabled</code> parameter.",
312312
"PopoverConfirmsIsAsyncConfirmationText": "Asynchronous confirmation",
313313
"PopoverConfirmsIsAsyncConfirmationContent": "Are you sure you want to delete the data?",
314314
"PopoverConfirmsFormTitle": "form submission",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"PopoverConfirmsContentDelete": "删除确认按钮",
309309
"PopoverConfirmsContentDeleteContent": "确定删除数据吗?",
310310
"PopoverConfirmsIsAsyncTitle": "异步确认",
311-
"PopoverConfirmsIsAsyncIntro": "通过设置 <code>IsAsync</code> 属性点击确认按钮时异步进行数据提交",
311+
"PopoverConfirmsIsAsyncIntro": "通过设置 <code>IsAsync</code> 属性点击确认按钮时异步进行数据提交。有些特定场景异步后需要按钮继续保持禁用状态,请通过 <code>IsKeepDisabled</code> 参数控制",
312312
"PopoverConfirmsIsAsyncConfirmationText": "异步确认",
313313
"PopoverConfirmsIsAsyncConfirmationContent": "确定删除数据吗?",
314314
"PopoverConfirmsFormTitle": "表单提交",

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

77
<ItemGroup>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -111,7 +111,7 @@ private async Task OnClickConfirm()
111111
}
112112
else
113113
{
114-
IsDisabled = false;
114+
IsDisabled = IsKeepDisabled;
115115
IsAsyncLoading = false;
116116
StateHasChanged();
117117
}

0 commit comments

Comments
 (0)