From 1a52a0f840a25b734190cad8c85d59de8c95d526 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 19 Apr 2026 10:48:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20OnClickWithoutRend?= =?UTF-8?q?er=20=E5=8F=96=E6=B6=88=E5=BC=95=E7=94=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Button/ButtonBase.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/BootstrapBlazor/Components/Button/ButtonBase.cs b/src/BootstrapBlazor/Components/Button/ButtonBase.cs index a7aa5c21fb3..3aaadb0ae91 100644 --- a/src/BootstrapBlazor/Components/Button/ButtonBase.cs +++ b/src/BootstrapBlazor/Components/Button/ButtonBase.cs @@ -339,6 +339,11 @@ protected override async ValueTask DisposeAsync(bool disposing) OnClick = EventCallback.Empty; } + if (OnClickWithoutRender != null) + { + OnClickWithoutRender = null; + } + if (IsAsync && ValidateForm != null) { ValidateForm.UnregisterAsyncSubmitButton(this);