We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526eb07 commit 874a47aCopy full SHA for 874a47a
src/BootstrapBlazor/Components/Button/LinkButton.cs
@@ -120,14 +120,19 @@ private RenderFragment AddImage() => builder =>
120
121
private async Task OnClickButton()
122
{
123
- if (OnClickWithoutRender != null)
+ if (IsAsync)
124
125
- await OnClickWithoutRender();
+ IsAsyncLoading = true;
126
+ IsDisabled = true;
127
}
128
- if (OnClick.HasDelegate)
129
+ await HandlerClick();
130
+
131
+ // 恢复按钮
132
133
- await OnClick.InvokeAsync();
134
+ IsDisabled = IsKeepDisabled;
135
+ IsAsyncLoading = false;
136
137
138
0 commit comments