Skip to content

Commit d451a73

Browse files
CopilotArgoZhang
andauthored
fix(Dialog): Fix scrolling issue in nested/multiple dialogs (#6786)
* Initial plan * Implemented fix for multiple dialog scrolling issue Co-authored-by: ArgoZhang <[email protected]> * fix: 多级弹窗窗体内滚动 * Revert "Implemented fix for multiple dialog scrolling issue" This reverts commit 42c4136. * chore: bump version 9.10.3 --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: ArgoZhang <[email protected]> Co-authored-by: Argo Zhang <[email protected]>
1 parent 7051bf1 commit d451a73

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.10.2</Version>
4+
<Version>9.10.3</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ private async Task Show(DialogOption option)
166166

167167
private static RenderFragment RenderDialog(int index, Dictionary<string, object> parameter) => builder =>
168168
{
169+
if (index > 0)
170+
{
171+
parameter[nameof(ModalDialog.IsScrolling)] = true;
172+
}
173+
169174
builder.OpenComponent<ModalDialog>(100 + index);
170175
builder.AddMultipleAttributes(101 + index, parameter);
171176
builder.SetKey(parameter);

0 commit comments

Comments
 (0)