You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The headers prop for DataTable now seems to require a slug property in TS projects. Following the types, it seems like DataTableHeader simply needs to have this marked as optional.
Try using the DataTable component in a TypeScript project. If you pass a headers prop, and those headers do not have a slug property, then the component will not type-check.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Package
@carbon/react
Browser
No response
Package version
v1.50.0
React version
v17.0.2
Description
The
headers
prop forDataTable
now seems to require aslug
property in TS projects. Following the types, it seems likeDataTableHeader
simply needs to have this marked as optional.Reproduction/example
https://stackblitz.com/edit/stackblitz-starters-267fuz?file=src%2FApp.tsx
Steps to reproduce
Try using the
DataTable
component in a TypeScript project. If you pass aheaders
prop, and those headers do not have aslug
property, then the component will not type-check.Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
Randori
Code of Conduct
The text was updated successfully, but these errors were encountered: