igniteui-webcomponents icon indicating copy to clipboard operation
igniteui-webcomponents copied to clipboard

Combo does not update items in change event

Open wnvko opened this issue 2 years ago • 1 comments

Description

Combo does not update the items, or show incorrect items in igcChange event.

Steps to reproduce

Look at this sample. Select different items in the combo and observe the e.details.items collection.

Result

items collection does not contain the same items as the once selected in the combo.

Expected result

items collection should contains all the selected items in the combo.

wnvko avatar Aug 15 '23 14:08 wnvko

That's by design. The items collection only contains the items for the current change, i.e. if you select an item you will get a change event of type selection with the items array including only the newly selected items, not all selected items. The same applies to the change event of type deselection.

@damyanpetev I believe this is what we agreed on when discussing the design of the igcChange event for the combo.

simeonoff avatar Aug 16 '23 08:08 simeonoff