Skip to content

Commit 7d17ccb

Browse files
committed
revert: 撤销 OnClick 委托清理逻辑
1 parent 72bf3fc commit 7d17ccb

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/BootstrapBlazor/Components/Button/ButtonBase.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,6 @@ protected override async ValueTask DisposeAsync(bool disposing)
334334
{
335335
if (disposing)
336336
{
337-
if (OnClick.HasDelegate)
338-
{
339-
OnClick = EventCallback<MouseEventArgs>.Empty;
340-
}
341-
342-
if (OnClickWithoutRender != null)
343-
{
344-
OnClickWithoutRender = null;
345-
}
346-
347337
if (IsAsync && ValidateForm != null)
348338
{
349339
ValidateForm.UnregisterAsyncSubmitButton(this);

0 commit comments

Comments
 (0)