Description
When the Combo has a generic type T="int" and Change event is bound as well, error is thrown when selecting an item or predefining value.
Hosting Model
Blazor Server
.NET Version
9
Ignite UI for Blazor Version
26.x
Component / Area
Combo
Browser
Chrome
Operating System
No response
Steps to Reproduce
- Run the attached sample
- Select an item from the combo
- Observe the console
Actual Result
Error is thrown and the Change event handler is not called
System.InvalidCastException: Arg_InvalidCastException
blazor.webassembly.js:1 at IgniteUI.Blazor.Controls.BaseRendererControl.DowncastArray[Int32](Object val)
blazor.webassembly.js:1 at IgniteUI.Blazor.Controls.IgbCombo`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<set_Change>b__174_0(IgbComboChangeEventArgs args)
blazor.webassembly.js:1 at IgniteUI.Blazor.Controls.BaseRendererControl.<>c__DisplayClass200_0`1[[IgniteUI.Blazor.Controls.IgbComboChangeEventArgs, IgniteUI.Blazor, Version=26.1.99.0, Culture=neutral, PublicKeyToken=null]].<SetHandler>b__0(Object sender, Object args)
blazor.webassembly.js:1 at IgniteUI.Blazor.Controls.BaseRendererControl.OnRaiseEvent(String name, String propertyName, String args)
Expected Result
There should be no errors and Change event should trigger
Reproduction URL
No response
Attachments
ComboInt.zip
Description
When the Combo has a generic type T="int" and
Changeevent is bound as well, error is thrown when selecting an item or predefining value.Hosting Model
Blazor Server
.NET Version
9
Ignite UI for Blazor Version
26.x
Component / Area
Combo
Browser
Chrome
Operating System
No response
Steps to Reproduce
Actual Result
Error is thrown and the
Changeevent handler is not calledExpected Result
There should be no errors and
Changeevent should triggerReproduction URL
No response
Attachments
ComboInt.zip