From 1f7aee66f039fd4700a95ae6b4bd86460d1c0a61 Mon Sep 17 00:00:00 2001 From: gvreddy04 Date: Sat, 21 Feb 2026 22:32:57 +0530 Subject: [PATCH] #940: Add auto-focus option for Yes button in ConfirmDialog Updated ConfirmDialog to pass shouldAutoFocusYesButton to the JS show function, enabling automatic focus on the "Yes" button when the dialog appears. --- blazorbootstrap/Components/ConfirmDialog/ConfirmDialog.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazorbootstrap/Components/ConfirmDialog/ConfirmDialog.razor.cs b/blazorbootstrap/Components/ConfirmDialog/ConfirmDialog.razor.cs index 9a4a23a9a..cd8b0f2f8 100644 --- a/blazorbootstrap/Components/ConfirmDialog/ConfirmDialog.razor.cs +++ b/blazorbootstrap/Components/ConfirmDialog/ConfirmDialog.razor.cs @@ -122,7 +122,7 @@ private Task Show(string title, string? message1, string? message2, Type? StateHasChanged(); - Task.Run(async () => await SafeInvokeVoidAsync("window.blazorBootstrap.confirmDialog.show", Id)); + Task.Run(async () => await SafeInvokeVoidAsync("window.blazorBootstrap.confirmDialog.show", Id, shouldAutoFocusYesButton)); return task; }