Skip to content

Commit 2579635

Browse files
committed
don't set isVisible = false before OnHidden
1 parent ac9f075 commit 2579635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blazorbootstrap/Components/Modals/Modal.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protected override async Task OnInitializedAsync()
6969
[JSInvokable]
7070
public async Task bsHiddenModal()
7171
{
72+
isVisible = false;
7273
await OnHidden.InvokeAsync();
7374

7475
if (ModalService is not null && IsServiceModal)
@@ -92,7 +93,6 @@ public async Task bsHiddenModal()
9293
/// </summary>
9394
public async Task HideAsync()
9495
{
95-
isVisible = false;
9696
await JSRuntime.InvokeVoidAsync("window.blazorBootstrap.modal.hide", Id);
9797
}
9898

0 commit comments

Comments
 (0)