diff --git a/README.md b/README.md index 3b298b3..2bc1734 100644 --- a/README.md +++ b/README.md @@ -389,7 +389,7 @@ These are all of the available props (and their default values) for the main ` ({}), getTfootProps: () => ({}), getTfootTrProps: () => ({}), - getTfootThProps: () => ({}), + getTfootTdProps: () => ({}), getPaginationProps: () => ({}), getLoadingProps: () => ({}), getNoDataProps: () => ({}), diff --git a/src/index.js b/src/index.js index fae2a8c..ec7d930 100644 --- a/src/index.js +++ b/src/index.js @@ -737,7 +737,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) { const show = typeof column.show === 'function' ? column.show() : column.show const width = _.getFirstDefined(resizedCol.value, column.width, column.minWidth) const maxWidth = _.getFirstDefined(resizedCol.value, column.width, column.maxWidth) - const tFootTdProps = _.splitProps(getTfootTdProps(finalState, undefined, undefined, this)) + const tFootTdProps = _.splitProps(getTfootTdProps(finalState, undefined, column, this)) const columnProps = _.splitProps(column.getProps(finalState, undefined, column, this)) const columnFooterProps = _.splitProps( column.getFooterProps(finalState, undefined, column, this)