-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
component: data-tableneeds: community contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.role: dev 🤖severity: 3https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitystatus: help wanted 👐type: bug 🐛
Description
Package
carbon-components-react
Browser
No response
Package version
v7.59.8
React version
v16.14.0
Description
In TableToolbarSearch.js, it is calling onChangeProp with two strings instead of an event as expected when a default value is specified.
useEffect(
() => {
if (defaultValue) {
onChangeProp?.('', defaultValue);
}
},
//eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
As a result the onChange handler is passed '' instead of an event with a target value.
Reproduction/example
N/A
Steps to reproduce
- Render a TableToolbarSearch component with a defaultValue and an onChange handler.
- The onChange handler will be called with an emptyString instead of an event.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
IBM Knowledge Catalog (formally Watson Knowledge Catalog)
Code of Conduct
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate problems
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: data-tableneeds: community contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.role: dev 🤖severity: 3https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitystatus: help wanted 👐type: bug 🐛
Type
Projects
Status
⏱ Backlog