Closed SantosVictorero closed 1 month ago
Please change the title and supply reproduction code we can run
@vnbaaij, thanks for your response.
As I wrote in the "Possible Solution": If I remove the NavMenu, there is no exception. So the Javascript exception is created at: Microsoft.FluentUI.AspNetCore.Components.FluentKeyCode.OnAfterRenderAsync(Boolean firstRender) in /_/src/Core/Components/KeyCode/FluentKeyCode.razor.cs:line 126
This is a customized application that I am refactoring. Everything else works fine without Blazor FluentUI
Best
Santos
I understand it is an issue with the NavMenu.
What I'm asking is that you supply us with ready to run reproduction code. We don't have capacity to craft and write code for every issue that gets raised. We understand that your code may be proprietary. In that case you create a new project specifically for sharing with us.
We simply ask you to help us to help you.
Understood!
I don't I have the time right now since I have to meet a deadline. I will try to put something together next week.
Thanks
Closing this as we have not received reproduction code. We can re-open after we receive project.
π Bug Report
Exception from NavMenu
π» Repro or Code Sample
π€ Expected Behavior
No exception
π― Current Behavior
System.ArgumentNullException: Value cannot be null. (Parameter 'jsObjectReference') at System.ArgumentNullException.Throw(String paramName) at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName) at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeAsync[String](IJSObjectReference jsObjectReference, String identifier, Object[] args) at Microsoft.FluentUI.AspNetCore.Components.FluentKeyCode.OnAfterRenderAsync(Boolean firstRender) in /_/src/Core/Components/KeyCode/FluentKeyCode.razor.cs:line 126 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
π Possible Solution
π€·ββοΈ If I remove the NavMenu, there is no exception
π¦ Context
The application works normally but it throw exception to console
π Your Environment