From 5d00e79e0b5b46caa7c1b9bf24dc2eb78cc0554f Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Fri, 20 Dec 2024 12:21:05 +0200 Subject: [PATCH] Catched possible sporadic exception invoking 'RadzenTooltip.CloseTooltip' Fixed #1871 --- Radzen.Blazor/wwwroot/Radzen.Blazor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Radzen.Blazor/wwwroot/Radzen.Blazor.js b/Radzen.Blazor/wwwroot/Radzen.Blazor.js index ba40dcb31a3..f5404a0c78c 100644 --- a/Radzen.Blazor/wwwroot/Radzen.Blazor.js +++ b/Radzen.Blazor/wwwroot/Radzen.Blazor.js @@ -1157,7 +1157,7 @@ window.Radzen = { tooltipContent.classList.add('rz-top-tooltip-content'); position = 'top'; if (instance && callback) { - instance.invokeMethodAsync(callback, position); + try { instance.invokeMethodAsync(callback, position); } catch { } } } } @@ -1175,7 +1175,7 @@ window.Radzen = { tooltipContent.classList.add('rz-left-tooltip-content'); position = 'left'; if (instance && callback) { - instance.invokeMethodAsync(callback, position); + try { instance.invokeMethodAsync(callback, position); } catch { } } } } @@ -1335,9 +1335,9 @@ window.Radzen = { if (instance && callback) { if (callback.includes('RadzenTooltip')) { - instance.invokeMethodAsync(callback, null); + try { instance.invokeMethodAsync(callback, null); } catch { } } else { - instance.invokeMethodAsync(callback); + try { instance.invokeMethodAsync(callback); } catch { } } } Radzen.popups = (Radzen.popups || []).filter(function (obj) {