Contex menu throws exception after updating from 3.5.3 to 3.6.7 #150

Open
opened 2026-01-29 17:32:25 +00:00 by claunia · 0 comments
Owner

Originally created by @OndrejUzovic on GitHub (Jul 12, 2021).

After updating the radzen library to 3.6.7 the opening of the context menu throws the following exception:

(Also the example on the demo page stopped to work: https://blazor.radzen.com/contextmenu)

Error: Microsoft.JSInterop.JSException: Cannot read property 'scrollWidth' of null
TypeError: Cannot read property 'scrollWidth' of null
    at Object.openPopup (https://localhost:44395/_content/Radzen.Blazor/Radzen.Blazor.js:751:15)
    at Object.openContextMenu (https://localhost:44395/_content/Radzen.Blazor/Radzen.Blazor.js:571:12)
    at https://localhost:44395/_framework/blazor.server.js:1:70043
    at new Promise (<anonymous>)
    at e.beginInvokeJSFromDotNet (https://localhost:44395/_framework/blazor.server.js:1:70009)
    at https://localhost:44395/_framework/blazor.server.js:1:26293
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44395/_framework/blazor.server.js:1:26263)
    at e.processIncomingData (https://localhost:44395/_framework/blazor.server.js:1:24201)
    at e.connection.onreceive (https://localhost:44395/_framework/blazor.server.js:1:17286)
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
   at Radzen.Blazor.RadzenContextMenu.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
Originally created by @OndrejUzovic on GitHub (Jul 12, 2021). After updating the radzen library to 3.6.7 the opening of the context menu throws the following exception: (Also the example on the demo page stopped to work: https://blazor.radzen.com/contextmenu) ``` Error: Microsoft.JSInterop.JSException: Cannot read property 'scrollWidth' of null TypeError: Cannot read property 'scrollWidth' of null at Object.openPopup (https://localhost:44395/_content/Radzen.Blazor/Radzen.Blazor.js:751:15) at Object.openContextMenu (https://localhost:44395/_content/Radzen.Blazor/Radzen.Blazor.js:571:12) at https://localhost:44395/_framework/blazor.server.js:1:70043 at new Promise (<anonymous>) at e.beginInvokeJSFromDotNet (https://localhost:44395/_framework/blazor.server.js:1:70009) at https://localhost:44395/_framework/blazor.server.js:1:26293 at Array.forEach (<anonymous>) at e.invokeClientMethod (https://localhost:44395/_framework/blazor.server.js:1:26263) at e.processIncomingData (https://localhost:44395/_framework/blazor.server.js:1:24201) at e.connection.onreceive (https://localhost:44395/_framework/blazor.server.js:1:17286) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at Radzen.Blazor.RadzenContextMenu.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#150