Tooltip - Cannot read property 'removeChild' of null

In the Main Layout page we two profile menus. One has a tooltip and the other does not. If I hover over the one with the tooltip then click on the profile without the tooltip the following exception is thrown

fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit '26cLBGi_kQbAB86VgTxM0-762J4WTAbuVljAL86gt8Q'.
System.AggregateException: One or more errors occurred. (TypeError: Cannot read property 'removeChild' of null)
---> System.InvalidOperationException: TypeError: Cannot read property 'removeChild' of null
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)

1 Like

Thanks for this one. I spent hours trying to debug "TypeError: Cannot read property 'removeChild' of null" and found that the tooltip on a button that instigates a Navigate was the cause of the issue. I am time constrained and have not dug deeper, but the workaround is to remove the tooltips.
It would be great to hear of a better solution where we can use the tooltip.