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(Search): prevent duplicate onChange handler call #7613

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Jan 20, 2021

Closes #7481
Closes #7595

This PR removes an onChange call in the Search component

Testing / Reviewing

Confirm that the onChange method is called once per keystroke in the Search component story

@netlify
Copy link

netlify bot commented Jan 20, 2021

Deploy preview for carbon-elements ready!

Built with commit 900a967

https://deploy-preview-7613--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jan 20, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 900a967

https://deploy-preview-7613--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@tw15egan tw15egan merged commit 5c1ba53 into carbon-design-system:master Jan 22, 2021
@emyarod emyarod deleted the 7481-search-prevent-repeat-onchange-call branch January 25, 2021 18:19
@emyarod emyarod mentioned this pull request Feb 4, 2021
60 tasks
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.

TableToolbarSearch is firing onSearch twice for every input Search - onChange event triggering twice
4 participants