Skip to content

Commit 6459ce3

Browse files
committed
fix: 多级弹窗窗体内滚动
1 parent 7051bf1 commit 6459ce3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)