Cannot read property 'removeChild' of null on ContextMenu usage while navigating away to a page which has other PageLayout #18

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

Originally created by @janvdpol on GitHub (Jan 25, 2021).

Describe the bug
When using a ContextMenu on a regular button (maybe also on RadzenButton, did not test) I'm getting an error when navigating away to a Page where PageLayout is set to a minimal page layout (for printing)

To Reproduce
Steps to reproduce the behavior:

  1. Unzip attached project BlazorPrintCSSwithRadzen.zip
  2. Press CTRL-F5 (from Visual Studio)
  3. Rightclick on first button to see that contextmenu navigation is working to default Counter page
  4. Rightclick on second button to see that contextmenu navigation is NOT working to default print page

Expected behavior
Contextmenu always working while navigating away to print page

Screenshots
n.a.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 88.0.4324.104

Additional context
Full error saved from Chrome Developer tools
localhost-1611605562122.log

Originally created by @janvdpol on GitHub (Jan 25, 2021). **Describe the bug** When using a ContextMenu on a regular button (maybe also on RadzenButton, did not test) I'm getting an error when navigating away to a Page where PageLayout is set to a minimal page layout (for printing) **To Reproduce** Steps to reproduce the behavior: 1. Unzip attached project [BlazorPrintCSSwithRadzen.zip](https://github.com/radzenhq/radzen-blazor/files/5869395/BlazorPrintCSSwithRadzen.zip) 2. Press CTRL-F5 (from Visual Studio) 3. Rightclick on first button to see that contextmenu navigation is working to default Counter page 4. Rightclick on second button to see that contextmenu navigation is **NOT** working to default print page **Expected behavior** Contextmenu always working while navigating away to print page **Screenshots** n.a. **Desktop (please complete the following information):** - OS: Windows 10 - Browser: Chrome - Version: 88.0.4324.104 **Additional context** Full error saved from Chrome Developer tools [localhost-1611605562122.log](https://github.com/radzenhq/radzen-blazor/files/5869399/localhost-1611605562122.log)
Author
Owner

@enchev commented on GitHub (Jan 27, 2021):

The only option I can suggest you is to use navMgr.NavigateTo("/print", true); when navigating to this page.

@enchev commented on GitHub (Jan 27, 2021): The only option I can suggest you is to use `navMgr.NavigateTo("/print", true);` when navigating to this page.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#18