Closed BenJenkinson closed 1 month ago
Thanks @BenJenkinson! Added to the next release. The quality of your issue reports is what open-source maintainers dream of ✨
:tada: This issue has been resolved in version 3.15.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 3.16.0-beta.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Tremor Version
3.14.1
Link to minimal reproduction
(See repro steps)
Steps to reproduce
This code:
Produces this error:
What is expected?
The
TableHeaderCell
component extendsReact.ThHTMLAttributes<HTMLTableCellElement>
.The interface
ThHTMLAttributes
has the missing props forcolSpan
and similarWhat is actually happening?
The
TableHeaderCell
component only extendsReact.HTMLAttributes<HTMLTableCellElement>
https://github.com/tremorlabs/tremor/blob/bd6566b814d907e130b6827194def10b5bc3661f/src/components/list-elements/Table/TableHeaderCell.tsx#L5-L10
What browsers are you seeing the problem on?
Chrome
Any additional comments?
Unrecognised props (like
colSpan
here are passed through to the underlying<th>
, so it does currently work; but Typescript isn't happy.