Skip to content

Commit

Permalink
Catched possible sporadic exception invoking 'RadzenTooltip.CloseTool…
Browse files Browse the repository at this point in the history
…tip'

Fixed #1871
  • Loading branch information
enchev committed Dec 20, 2024
1 parent 3aac6a7 commit 5d00e79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
}
}
}
Expand All @@ -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 { }
}
}
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5d00e79

Please sign in to comment.