From e2f03ef2f2b96c2b381e0fcdd21599ddec0c84fc Mon Sep 17 00:00:00 2001 From: David H <4341219+whytspace@users.noreply.github.com> Date: Tue, 16 Jul 2019 21:21:43 +0200 Subject: [PATCH] * fixed docs: "getTfootThProps" does not exist in code, but "getTfootTdProps" does (#1399) * added `column` argument to getTfootTdProps function (match getTheadThProps and other prop getters in that scope) --- README.md | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)