carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.6k stars 1.76k forks source link

[Bug]: ComboBox - allowCustomValue no longer fires change event with custom value #16624

Open a88zach opened 1 month ago

a88zach commented 1 month ago

Package

@carbon/react

Browser

Chrome

Package version

^1.58.0

React version

18.3.1

Description

Before version 1.58.0, a ComboBox with allowCustomValue set to true would fire the onChange event with an inputValue property after custom text is entered and the enter key is pressed

That event is no longer fired after https://github.com/carbon-design-system/carbon/pull/16283

Reproduction/example

https://stackblitz.com/edit/github-1ithgj-dpiqwg?file=src%2FApp.tsx

Steps to reproduce

  1. Load the Stackblitz and enter a custom value. Notice the Value label does not update with the custom entered text.
  2. Stop the dev server and change the version back to 1.57.0
  3. Restart the dev server and notice the ComboBox is working as expected

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

a88zach commented 1 month ago

cc @preetibansalui caused by https://github.com/carbon-design-system/carbon/pull/16283

a88zach commented 3 weeks ago

@preetibansalui any chance someone can get some eyes on this one since it's a breaking change with a reproducible example?

preetibansalui commented 3 weeks ago

@preetibansalui any chance someone can get some eyes on this one since it's a breaking change with a reproducible example?

Hey @a88zach , let me take it on priority. Thanks for pointing this out.

preetibansalui commented 3 weeks ago

Hey @a88zach , The stackblitz link you shared is not working properly, can you please check and fix it.

a88zach commented 3 weeks ago

@preetibansalui, I just loaded the Stackblitz in an incognito window and it is working properly to reproduce the issue. In what way was it not working properly for you?

a88zach commented 1 week ago

@preetibansalui this one is related and caused by the change in https://github.com/carbon-design-system/carbon/pull/16283

https://github.com/carbon-design-system/carbon/issues/16856