React-table: footerClassName is not honored

Created on 3 Nov 2017  路  9Comments  路  Source: tannerlinsley/react-table

What version of React-Table are you using?

6.7.4

What bug are you experiencing, or what feature are you proposing?

footerClassName is not being honored

Use https://codesandbox.io/s/X6npLXPRW (by clicking the "Fork" button) to reproduce the issue.

https://codesandbox.io/s/r1xnrox1o

What are the steps to reproduce the issue?

  1. create a table with a footer
  2. apply a class using footerClassName
  3. footer renders without class
bug

Most helpful comment

this is still occuring on 6.9.2. Here is a sandbox example, the last name footer is set to text-right which is not set:

https://codesandbox.io/s/y51w2k17x

All 9 comments

fixed in #619

@gary-menzel @hansena still not work with latest version v6.7.6
Tested in https://codesandbox.io/s/9z8469xlpw

Is the fix released yet?

Yes - but it looks like the fix provided by @hansena was not properly merged into the file.

But there are workarounds....

You'll have to use getTfootTdProps override on the table (and return a className in the object) until it can be looked at again.

You can also override getFooterProps on the column and do the same thing.

There are no automated tests and there are probably too many places where the same thing can be done.

Closing due to issue age. If you think this issue needs to be reopened, please check the latest version of React-Table for the issue once more and reopen if appropriate. Thanks!

I encountered this issue with version 6.8.5. Can this be reopened?

+1
Still having this issue on 6.8.6

Me too

this is still occuring on 6.9.2. Here is a sandbox example, the last name footer is set to text-right which is not set:

https://codesandbox.io/s/y51w2k17x

This still appears to be an issue in 6.10.3. @gary-menzel's workaround worked for me.

Instead off defining

footerClassName: 'custom-class'

try:

getFooterProps: () => ({
  className: 'custom-class'
}),
Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexanderwhatley picture alexanderwhatley  路  3Comments

kieronsutton00 picture kieronsutton00  路  3Comments

panfiva picture panfiva  路  3Comments

dilipsundarraj1 picture dilipsundarraj1  路  3Comments

danielmariz picture danielmariz  路  3Comments