Hi,
I use blazor component on one of my project and After I have added google translate bar on my site blazor dropdown were stop working.
I change the selected value on page but it does not reflects. when I go to next step and back to the previous step it displays.
It works in english but When I change the language it stops working.
Could you help me with this?
Here is the error on console.
Error: System.AggregateException: One or more errors occurred. (TypeError: can't access property "removeChild", o.parentNode is null)
---> System.InvalidOperationException: TypeError: can't access property "removeChild", o.parentNode is null
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
--- End of inner exception stack trace ---
And here is the Jam file.
https://jam.dev/c/d94634b7-93d7-4a7d-8b0b-03812d0fa3cf
Also Here is my implementation of component
<div class="col-lg-3 col-xs-12 col-6 mb-lg-0 mb-3">
Man
<RadzenDropDown Data=@VisitorCount @bind-Value=@contactCustomerModel.ManCount Change=@(args => OnManChange(args)) TValue="short?" />
</div>
<div class="col-lg-3 col-xs-12 col-6 mb-lg-0 mb-3">
Women
<RadzenDropDown Data=@VisitorCount @bind-Value=@contactCustomerModel.FemaleCount Change=@(args => OnFemaleChange(args)) TValue="short?" />
</div>
private short[] VisitorCount { get; set; } = new short[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
Also this is the error log from Backend
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: TypeError: can't access property "removeChild", o.parentNode is null
System.InvalidOperationException: TypeError: can't access property "removeChild", o.parentNode is null
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'P0_TjxKISdYxLvC2A3XNmA04eVOIrXG6YOvEsysJ7i0'.
System.AggregateException: One or more errors occurred. (TypeError: can't access property "removeChild", o.parentNode is null)
---> System.InvalidOperationException: TypeError: can't access property "removeChild", o.parentNode is null
at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
--- End of inner exception stack trace ---