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

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

Originally created by @developertest02 on GitHub (Aug 9, 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:

  1. See github linked project below.
  2. Run project
  3. Navigate to child and hover over icon to trigger the tooltip
  4. navigate back to home using the main menu

Alternatively link your repo with a sample project that can be run.
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 9, 2022). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **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.<anonymous> (blazor.server.js:1:129275) at blazor.server.js:1:72001 at Array.forEach (<anonymous>) 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: 1. See github linked project below. 2. Run project 3. Navigate to child and hover over icon to trigger the tooltip 4. navigate back to home using the main menu Alternatively link your repo with a sample project that can be run. 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):

I'm afraid that I'm unable to access your project.
image

Try to debug the code of the tooltip and if you think there is a bug and you have a fix you can submit pull request.

@enchev commented on GitHub (Aug 10, 2022): I'm afraid that I'm unable to access your project. ![image](https://user-images.githubusercontent.com/5804953/183837490-e28576d6-d156-4fee-911d-f70590d74573.png) Try to debug the code of the tooltip and if you think there is a bug and you have a fix you can submit pull request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#503