SfTooltip object disposal inside a SfDialog causes exception when leaving the page

Hi,

Im' using SyncFusion.Blazor version 18.2.0.46.

This is the code:

<SfDialog IsModal="false" Width="250px" ShowCloseIcon="true" CloseOnEscape="true">
    <DialogTemplates>
        <Content>
            <SfTooltip Content="The fast brown fox!" OpensOn="Hover">
                <img src="images/icon_information.png" />
            </SfTooltip>
        </Content>
    </DialogTemplates>
</SfDialog>

The following is the exception that occurs when leaving the page:
Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit 'q3ipLvmgsMq2eXbFtfLYokzs64xvpIHSpVCgZ3gL23E'.
Microsoft.JSInterop.JSException: Cannot read property 'blazor__instance' of null
TypeError: Cannot read property 'blazor__instance' of null
    at Object.destroy (https://localhost:44344/_content/Syncfusion.Blazor/scripts/sf-tooltip-89e6e2.min.js:1:23226)
    at https://localhost:44344/_framework/blazor.server.js:8:31421
    at new Promise (<anonymous>)
    at e.beginInvokeJSFromDotNet (https://localhost:44344/_framework/blazor.server.js:8:31390)
    at https://localhost:44344/_framework/blazor.server.js:1:19202
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44344/_framework/blazor.server.js:1:19173)
    at e.processIncomingData (https://localhost:44344/_framework/blazor.server.js:1:17165)
    at e.connection.onreceive (https://localhost:44344/_framework/blazor.server.js:1:10276)
    at WebSocket.i.onmessage (https://localhost:44344/_framework/blazor.server.js:1:38091)
   at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
   at Syncfusion.Blazor.Popups.SfTooltip.ComponentDispose()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)
   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.<.cctor>b__23_0(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)

4 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team July 28, 2020 11:11 AM UTC

Hi João,  
 
We have checked your reported issue with Tooltip component. It is already a known issue from our end. We have consider this as a bug from our end. Fix for this issue will be included in our first weekly release which rolls out after Volume 2 SP release which is expected to be released in the third week of August 2020. 
 
You can track the below link to know the issue fix status. 
 
 
We appreciate your patience. 
 
Regards,  
Sowmiya.P 



SP Sowmiya Padmanaban Syncfusion Team August 10, 2020 11:09 AM UTC

Hi João,  
 
Thanks for your patience. 
 
We have glad to announce that our patch release (v18.2.0.48) is rolled out successfully. In this release, we have included a script error fix for Tooltip component. To access this fix, we suggest you to update the package to the latest version(v18.2.0.48). 
 
Refer the release notes below. 
 
 
Refer the sample link below. 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards,  
Sowmiya.P  


Marked as answer

TI Tibi August 24, 2020 01:08 PM UTC

The error still occurs if the tooltip is inside the Dialog of a Grid Edit Template.

Setting the editmode of a grid to Dialog, in the edit template we create a toolip. When we close the dialog the same "Cannot read property 'blazor__instance' of null" appears.


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team August 25, 2020 01:35 PM UTC

Hi João, 
 
Query: “The error still occurs if the tooltip is inside the Dialog of a Grid Edit Template.  
  
We have validated the reported issue by preparing a sample as per the your suggestion. Unfortunately, we are not able to reproduce the reported issue at our end. Kindly download the sample from below which we have prepared using 18.2.0.54 Syncfusion.Blazor Nuget package.   
  
  
If you are still facing the issue reported issue, kindly get back to us with following details      
  
1.       Share the Grid rendering code example along with EditTemplate.   
2.       Share the stack trace of the reported issue with a screenshot.   
3.       Share your Syncfusion.Blazor Nuget package version.   
4.       If possible, try to reproduce the reported issue in provided sample and revert back to us.   
  
Above requested details will be helpful for us to validate the reported issue at our end and provide solution as early as possible. 
 
Regards, 
Shameer Ali Baig S. 


Loader.
Up arrow icon