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

TableToolbarSearch is firing onSearch twice for every input #7595

Closed
1 of 2 tasks
scottdickerson opened this issue Jan 19, 2021 · 1 comment · Fixed by #7613
Closed
1 of 2 tasks

TableToolbarSearch is firing onSearch twice for every input #7595

scottdickerson opened this issue Jan 19, 2021 · 1 comment · Fixed by #7613

Comments

@scottdickerson
Copy link
Contributor

scottdickerson commented Jan 19, 2021

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

Is this issue related to a specific component?

What did you expect to happen? What happened instead? What would you like to
see changed?
To see the issue simply render a TableToolbarSearch and then type into it
<TableToolbarSearch
placeHolderText={i18n.searchPlaceHolderText}
onChange={onSearch}
className={${iotPrefix}--tile-catalog--tile-canvas--header--search}
/>

What browser are you working in?
Chrome and Jest

What version of the Carbon Design System are you using?
"carbon-components": "^10.26.0",
"carbon-components-react": "^7.26.0",

What offering/product do you work on? Any pressing ship or release dates we
should be aware of?

Steps to reproduce the issue

See this codesandbox to see the issue:
https://codesandbox.io/s/carbon-components-react-forked-5q8de?file=/src/index.js

If you type into search field and check the console.log you'll see two entries for each button press

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants