-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ComboBox: onChange is not called when building the code in production mode #18145
Comments
+1 Same issue with production build. Using next.js |
@Neues, can you take a look at the PR linked above that fixes this issue? |
@a88zach I am not able to add myself as a reviewer and give an approval but the changes look good to me. |
Facing same issue. Using react.js |
Its happening for me as well in production mode only. |
+1 |
This is very impactful for me, as a temporary measure I've downgraded to @carbon/react 1.70.0 which seems to be an adequate tactical fix. |
Package
@carbon/react
Browser
No response
Package version
v1.71
React version
No response
Description
This is a regression caused by #18041. When using webpack to build the code in "production" mode (not sure if it is caused by the minimizer or something), the downshift type is behaving different, and this is causing the
onChange
not to be fired at all. It works, however, if I build the code for local development without minimizing / ugilify the JS.So I have added a few
console.log
statements to prove the behaviour.When building the code for local development, I see these printed in the console as:
When building the code for production, I see these printed in the console instead:
As you can see, the type is now an integer rather than a string, which causing the
onChange
handler never be called.Because this only fails in "production" code, our unit tests are not able to catch the problem.
Reproduction/example
N/A
Steps to reproduce
See description.
Suggested Severity
Severity 1 = Must be fixed ASAP. The response must be swift. Someone from the team must drop all current work and be immediately reassigned to address the issue.
Application/PAL
IBM Projects
Code of Conduct
The text was updated successfully, but these errors were encountered: