Skip to content

Commit

Permalink
Tooltip generates console error when RadzenTooltip.CloseTooltip called
Browse files Browse the repository at this point in the history
Fix #1808
  • Loading branch information
enchev committed Nov 22, 2024
1 parent dbaeb39 commit c9bedc9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,12 @@ window.Radzen = {
window.removeEventListener('resize', Radzen[id]);
Radzen[id] = null;

if (instance) {
instance.invokeMethodAsync(callback);
if (instance && callback) {
if (callback.includes('RadzenTooltip')) {
instance.invokeMethodAsync(callback, null);
} else {
instance.invokeMethodAsync(callback);
}
}
Radzen.popups = (Radzen.popups || []).filter(function (obj) {
return obj.id !== id;
Expand Down

0 comments on commit c9bedc9

Please sign in to comment.