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
When using the React carbon component the Datatable skeleton doesn't show the expected header values.
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Describe in detail the issue you're having.
If the skeleton is passed the headers parameter with the same format as the normal datatable, the key names are shown in the header, rather than the expected header value.
When using the React carbon component the Datatable skeleton doesn't show the expected header values.
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
If the skeleton is passed the
headers
parameter with the same format as the normal datatable, the key names are shown in the header, rather than the expected header value.Datatable skeleton
https://react.carbondesignsystem.com/?path=/docs/components-datatable--skeleton
I expect it to handle the same format as the normal datatable and display the header value from the headers object.
Here is an example from the datatable tests
https://github.com/carbon-design-system/carbon/blob/main/packages/react/src/components/DataTable/__tests__/DataTable-test.js#L69-L77
FF && Chrome
"carbon-components": "10.32.1"
"carbon-components-react": "7.32.1"
IBM Cp4Waiops, continuous release cycle.
Steps to reproduce the issue
Here is an example
https://codesandbox.io/s/datatable-skeleton-header-defect-t4rkf?file=/src/index.js:191-347
Additional information
I believe this is the issue:
https://github.com/carbon-design-system/carbon/blame/main/packages/react/src/components/DataTableSkeleton/DataTableSkeleton.js#L73
The text was updated successfully, but these errors were encountered: