Skip to content
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]: Toggling the same option in ComboBox dropdown doesn't always trigger the onChange event #18361

Open
1 of 2 tasks
soumen-roy-001 opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. component: combobox role: dev 🤖 severity: 3 https://ibm.biz/carbon-severity type: bug 🐛

Comments

@soumen-roy-001
Copy link

soumen-roy-001 commented Jan 16, 2025

Package

@carbon/react

Browser

Chrome

Package version

1.72.0

React version

18.3.1

Description

Try to select the same option in ComboBox multiple time, onChange event is not getting called on every toggle.

I think, similar kind of issue already registered here - #18286

Reproduction/example

https://codesandbox.io/p/sandbox/nlzr7m

Steps to reproduce

You select one option from the dropdown, and then toggle it, that option will be deselected. After that if you try to select that option again, no such onChange event gets triggered even though the option will be selected.
You need to clear the selected item by clicking the cross icon to get it selected again properly.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

IBM OpenPages

Code of Conduct

@github-actions github-actions bot added the adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. label Jan 16, 2025
@Gururajj77 Gururajj77 self-assigned this Jan 16, 2025
@Gururajj77 Gururajj77 moved this to 🏗 In Progress in Design System Jan 21, 2025
@Gururajj77
Copy link
Contributor

Hey @soumen-roy-001 , could you reproduce this issue in a stackblitz sandbox, as the codesandbox link you have provided isn't working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adopter: strategic-product Work-stream that directly effects the Product-led Growth initiative. component: combobox role: dev 🤖 severity: 3 https://ibm.biz/carbon-severity type: bug 🐛
Projects
Status: 🏗 In Progress
Development

No branches or pull requests

2 participants