Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.6.1</Version>
<Version>9.6.2-beta01</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,8 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase
/// <inheritdoc/>
/// </summary>
/// <param name="exception"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
protected override async Task OnErrorAsync(Exception exception)
{
// 由框架调用
if (OnErrorHandleAsync != null)
{
await OnErrorHandleAsync(Logger, exception);
return;
}

if (ShowToast)
{
await ToastService.Error(ToastTitle, exception.Message);
Expand Down Expand Up @@ -124,6 +115,13 @@ private MarkupString GetErrorContentMarkupString(Exception ex)
/// <param name="handler"></param>
public async Task RenderException(Exception exception, IHandlerException? handler)
{
// 外部调用
if (OnErrorHandleAsync != null)
{
await OnErrorHandleAsync(Logger, exception);
return;
}

if (handler != null)
{
await handler.HandlerException(exception, ExceptionContent);
Expand Down
1 change: 1 addition & 0 deletions test/UnitTest/Services/FullScreenServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public async Task ButtonIcon_Ok()
{
builder.Add(s => s.Icon, "fa-solid fa-maximize");
builder.Add(s => s.Text, "button-text");
builder.Add(s => s.TargetId, "fsId");
});
cut.Contains("bb-fs-off");
cut.Contains("bb-fs-on");
Expand Down