From 0623c63f782010ce89b231b7b2656bb5006f0ace Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Sep 2025 04:07:02 +0000 Subject: [PATCH 1/5] Initial plan From 42c41361d01c12745d41157d84028a336c87d3e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Sep 2025 04:19:36 +0000 Subject: [PATCH 2/5] Implemented fix for multiple dialog scrolling issue Co-authored-by: ArgoZhang <22001478+ArgoZhang@users.noreply.github.com> --- .../Components/Pages/TestScrollDialog.razor | 134 ++++++++++++++++++ .../Components/Modal/Modal.razor.scss | 17 +++ 2 files changed, 151 insertions(+) create mode 100644 src/BootstrapBlazor.Server/Components/Pages/TestScrollDialog.razor diff --git a/src/BootstrapBlazor.Server/Components/Pages/TestScrollDialog.razor b/src/BootstrapBlazor.Server/Components/Pages/TestScrollDialog.razor new file mode 100644 index 00000000000..04635390d86 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Pages/TestScrollDialog.razor @@ -0,0 +1,134 @@ +@page "/test-scroll-dialog" +@using BootstrapBlazor.Server.Components.Components +@inject DialogService DialogService + +Test Scroll Dialog + +

Test Multiple Dialog Scrolling

+ +

This page tests the multiple dialog scrolling functionality.

+ +
+
+ +@code { + private async Task OpenFirstDialog() + { + await DialogService.Show(new DialogOption() + { + Title = "First Dialog - Large Content", + IsScrolling = true, + Size = Size.Large, + BodyTemplate = builder => + { + builder.OpenElement(0, "div"); + builder.AddAttribute(1, "style", "height: 800px; padding: 20px;"); + + builder.OpenElement(2, "h4"); + builder.AddContent(3, "First Dialog Content"); + builder.CloseElement(); + + builder.OpenElement(4, "p"); + builder.AddContent(5, "This is the first dialog with scrollable content. You should be able to scroll this content."); + builder.CloseElement(); + + // Add lots of content to make it scrollable + for (int i = 1; i <= 50; i++) + { + builder.OpenElement(6 + i * 3, "p"); + builder.AddContent(7 + i * 3, $"Line {i}: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); + builder.CloseElement(); + } + + // Add button to open second dialog + builder.OpenElement(200, "div"); + builder.AddAttribute(201, "class", "mt-4"); + builder.OpenComponent