Skip to content

Commit 2e132a9

Browse files
authored
fix(Modal): use TrySetResult prevent throw exception (#5222)
1 parent 0d04f6f commit 2e132a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private async Task CloseAsync()
385385
}
386386
}
387387
}
388-
ResultTask?.SetResult(_result);
388+
ResultTask?.TrySetResult(_result);
389389
await Modal.Close();
390390
}
391391

0 commit comments

Comments
 (0)