Tooltip issue with custom layout throws exception System.AggregateException: One or more errors occurred. (TypeError: Cannot read properties of null (reading 'removeChild')) #504

Closed
opened 2026-01-29 17:38:21 +00:00 by claunia · 1 comment
Owner

Originally created by @developertest02 on GitHub (Aug 10, 2022).

Describe the bug
A clear and concise description of what the bug is.
When using an element with a show tooltip event, after tooltip is shown, and then you navigate to another page (that uses a created layout, not the main layout generated by project creation), application crashes.

Following error can be observed in developer tools console.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'removeChild')
at H (blazor.server.js:1:17214)
at H (blazor.server.js:1:17184)
at H (blazor.server.js:1:17184)
at ie.applyEdits (blazor.server.js:1:21387)
at ie.updateComponent (blazor.server.js:1:20617)
at blazor.server.js:1:114721
at xn.processBatch (blazor.server.js:1:115093)
at kt. (blazor.server.js:1:129275)
at blazor.server.js:1:72001
at Array.forEach ()
H @ blazor.server.js:1
H @ blazor.server.js:1
H @ blazor.server.js:1
applyEdits @ blazor.server.js:1
updateComponent @ blazor.server.js:1
(anonymous) @ blazor.server.js:1
processBatch @ blazor.server.js:1
(anonymous) @ blazor.server.js:1
(anonymous) @ blazor.server.js:1
_invokeClientMethod @ blazor.server.js:1
_processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
o.onmessage @ blazor.server.js:1
blazor.server.js:1 [2022-08-09T13:11:41.432Z] Error: System.AggregateException: One or more errors occurred. (TypeError: Cannot read properties of null (reading 'removeChild'))
---> System.InvalidOperationException: TypeError: Cannot read properties of null (reading 'removeChild')
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
--- End of inner exception stack trace ---

To Reproduce
Steps to reproduce the behavior:

See github linked project below.
Run project
Navigate to child and hover over icon to trigger the tooltip
navigate back to home using the main menu
Alternatively link your repo with a sample project that can be run.
REPO IS PUBLIC NOW
https://github.com/developertest02/ScratchBlazor

Expected behavior
Tooltips should not trigger application crash

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows 10
Browser Chrome
Version 103.0.5060.134
Additional context
Add any other context about the problem here.

Originally created by @developertest02 on GitHub (Aug 10, 2022). Describe the bug A clear and concise description of what the bug is. When using an element with a show tooltip event, after tooltip is shown, and then you navigate to another page (that uses a created layout, not the main layout generated by project creation), application crashes. Following error can be observed in developer tools console. Uncaught (in promise) TypeError: Cannot read properties of null (reading 'removeChild') at H (blazor.server.js:1:17214) at H (blazor.server.js:1:17184) at H (blazor.server.js:1:17184) at ie.applyEdits (blazor.server.js:1:21387) at ie.updateComponent (blazor.server.js:1:20617) at blazor.server.js:1:114721 at xn.processBatch (blazor.server.js:1:115093) at kt. (blazor.server.js:1:129275) at blazor.server.js:1:72001 at Array.forEach () H @ blazor.server.js:1 H @ blazor.server.js:1 H @ blazor.server.js:1 applyEdits @ blazor.server.js:1 updateComponent @ blazor.server.js:1 (anonymous) @ blazor.server.js:1 processBatch @ blazor.server.js:1 (anonymous) @ blazor.server.js:1 (anonymous) @ blazor.server.js:1 _invokeClientMethod @ blazor.server.js:1 _processIncomingData @ blazor.server.js:1 connection.onreceive @ blazor.server.js:1 o.onmessage @ blazor.server.js:1 blazor.server.js:1 [2022-08-09T13:11:41.432Z] Error: System.AggregateException: One or more errors occurred. (TypeError: Cannot read properties of null (reading 'removeChild')) ---> System.InvalidOperationException: TypeError: Cannot read properties of null (reading 'removeChild') at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents) --- End of inner exception stack trace --- To Reproduce Steps to reproduce the behavior: See github linked project below. Run project Navigate to child and hover over icon to trigger the tooltip navigate back to home using the main menu Alternatively link your repo with a sample project that can be run. **REPO IS PUBLIC NOW** https://github.com/developertest02/ScratchBlazor Expected behavior Tooltips should not trigger application crash Screenshots If applicable, add screenshots to help explain your problem. Desktop (please complete the following information): OS: Windows 10 Browser Chrome Version 103.0.5060.134 Additional context Add any other context about the problem here.
Author
Owner

@enchev commented on GitHub (Aug 10, 2022):

Fixed in 1ec477b5bc

@enchev commented on GitHub (Aug 10, 2022): Fixed in https://github.com/radzenhq/radzen-blazor/commit/1ec477b5bc94b078c52039d0a0dd7aab84950ede
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#504