IgniteUI / igniteui-webcomponents

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
https://www.infragistics.com/products/ignite-ui-web-components
Other
113 stars 2 forks source link

[Bug]: igc-combo loses the last selected item with the keyboard #1229

Closed kdinev closed 1 week ago

kdinev commented 4 weeks ago

Which component(s) are affected?

Combo

Description

When I select items with the keyboard, the item selected last is lost on submission.

Reproduction

  1. Go to https://igniteui.github.io/igniteui-webcomponents/?path=/story/combo--basic
  2. Focus the combo
  3. Go down the items with the keyboard
  4. Select an item that is currently not selected by pressing the spacebar
  5. Press enter

Workaround

Not using the keyboard to select.

Is this a regression?

No or unsure. This never worker, or I haven't tried before.

Affected versions

4.9.0

Browser/OS/Node environment

Browser: Edge Dev

kdinev commented 3 weeks ago

The behavior should be updated such that single selection mode should select and close on enter, while multi-select combo should only close the combo drop down.