Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

[Bug]: Blazorise.Material JS exceptions

Open njannink opened this issue 1 year ago • 0 comments

Blazorise Version

1.4.2

What Blazorise provider are you running on?

Material

Steps to reproduce

Difficult to reproduce. I believe this happens when rendering is aborted by navigating away to another page.

What is actually happening?

Microsoft.JSInterop.JSException: Cannot read properties of null (reading 'querySelector')
TypeError: Cannot read properties of null (reading 'querySelector')
    at Module.open (https://xxx.com/_content/Blazorise.Material/modal.js?v=1.4.2.0:7:35)
    at https://xxx.com/_framework/blazor.server.js:1:3244
    at new Promise (<anonymous>)
    at y.beginInvokeJSFromDotNet (https://xxx.com/_framework/blazor.server.js:1:3201)
    at Yt._invokeClientMethod (https://xxx.com/_framework/blazor.server.js:1:60713)
    at Yt._processIncomingData (https://xxx.com/_framework/blazor.server.js:1:58188)
    at Yt.connection.onreceive (https://xxx.com/_framework/blazor.server.js:1:51829)
    at s.onmessage (https://xxx.com/_framework/blazor.server.js:1:79974)
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
   at Blazorise.Modules.BaseJSModule.InvokeSafeVoidAsync(String identifier, Object[] args)
   at Blazorise.Modal.<HandleVisibilityStyles>b__24_0()
   at Blazorise.BaseAfterRenderComponent.OnAfterRenderAsync(Boolean firstRender)
   at Blazorise.BaseComponent.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

What browsers are you seeing the problem on?

Microsoft Edge

njannink avatar Jan 31 '24 15:01 njannink