-
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 downshiftProps after selecting a item is not emitting onChange event #18212
Comments
Hey, do you see this issue on |
@2nikhiltom I updated the package there, please check. The issue exist on 1.72.0. |
@2nikhiltom Do we have any update on same? |
@Neues I think this is related to your change here: #18041 Passing in onStateChange in downshiftProps is overriding the onStateChange passed into useCombobox. The reason this breaks, is because onChange was moved from onInputValueChange and onSelectedItemChange into the new onStateChange. I reverted the changes in 18041 locally and everything works as expected. Without digging further into it, I guess there are a number of possibilities:
|
Package
@carbon/react
Browser
Chrome
Package version
1.72.0
React version
18.3.1
Description
There was an issue with Combobox with downshiftProps, which got fixed here #17027. But now the issue is , after the item gets selected from combobox, the onChange event is not happening.
Reproduction/example
https://stackblitz.com/edit/github-v56j87-igdhfb?file=src%2FApp.jsx
Steps to reproduce
Try selecting item from combobox, observe the onChange is not getting called after a selection:
onChange={(e) => { console.info('HELLO', e); }}
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
Power Virtual Server UI (PowerVS)
Code of Conduct
The text was updated successfully, but these errors were encountered: