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

fix: fixed onChange being fired twice on clear input #18048

Closed
wants to merge 3 commits into from

Conversation

guidari
Copy link
Contributor

@guidari guidari commented Nov 12, 2024

Closes #18027

Added a new validayion inside the if clause to aovid two onChanges to be called when the clear button is clicked.

Changelog

Testing / Reviewing

  • Test the Combobox clear functionality with the console open.

  • Delete console.log

@guidari guidari requested a review from a team as a code owner November 12, 2024 13:30
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 1e593b0
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/673463895736d00008a98739
😎 Deploy Preview https://deploy-preview-18048--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1e593b0
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/67346389e0a01600080ed6e7
😎 Deploy Preview https://deploy-preview-18048--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1e593b0
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6734638913c3e00008dd5a94
😎 Deploy Preview https://deploy-preview-18048--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.10%. Comparing base (126c4ed) to head (1e593b0).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18048   +/-   ##
=======================================
  Coverage   82.10%   82.10%           
=======================================
  Files         404      404           
  Lines       14107    14110    +3     
  Branches     4397     4380   -17     
=======================================
+ Hits        11582    11585    +3     
- Misses       2362     2363    +1     
+ Partials      163      162    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@annawen1 annawen1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@2nikhiltom 2nikhiltom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@guidari
Copy link
Contributor Author

guidari commented Nov 13, 2024

Duplicate fix from #18041 (review)

@guidari guidari closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Controllled combobox fires onchange twice when input field is cleared
3 participants