From d762ab7655af5ae958acb242bf15f75f3a82b317 Mon Sep 17 00:00:00 2001 From: dou Date: Mon, 26 Feb 2024 10:04:47 +1100 Subject: [PATCH] convert tabs --- src/Blazor.Diagrams/Extensions/JSRuntimeExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Blazor.Diagrams/Extensions/JSRuntimeExtensions.cs b/src/Blazor.Diagrams/Extensions/JSRuntimeExtensions.cs index e8e5d052..0a9a7f96 100644 --- a/src/Blazor.Diagrams/Extensions/JSRuntimeExtensions.cs +++ b/src/Blazor.Diagrams/Extensions/JSRuntimeExtensions.cs @@ -12,8 +12,8 @@ public static class JSRuntimeExtensions { try { - return await jsRuntime.InvokeAsync("ZBlazorDiagrams.getBoundingClientRect", element); - } + return await jsRuntime.InvokeAsync("ZBlazorDiagrams.getBoundingClientRect", element); + } catch (TaskCanceledException) { return null;