Skip to content

Combo with generic type T="int" throws error when Change event is bound as well #364

Description

@skrustev

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

  1. Run the attached sample
  2. Select an item from the combo
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.combo

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions