Skip to content

Commit 037be7d

Browse files
committed
refactor: 修复 Table 关闭抽屉后滚动条消失问题
1 parent becfdeb commit 037be7d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ public async Task OnContainerClick()
192192
await OnClickBackdrop();
193193
}
194194
_render = false;
195-
var animation = await InvokeAsync<bool>("execute", Id, false);
196-
if (animation)
197-
{
198-
await Task.Delay(300);
199-
}
200195
await Close();
201196
_render = true;
202197
}
@@ -209,6 +204,11 @@ public async Task OnContainerClick()
209204
public async Task Close()
210205
{
211206
IsOpen = false;
207+
var animation = await InvokeAsync<bool>("execute", Id, false);
208+
if (animation)
209+
{
210+
await Task.Delay(300);
211+
}
212212
if (OnCloseAsync != null)
213213
{
214214
await OnCloseAsync();

0 commit comments

Comments
 (0)