Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter and customized columns headers conflicts #1680

Closed
Rclass93 opened this issue Oct 11, 2017 · 2 comments
Closed

Filter and customized columns headers conflicts #1680

Rclass93 opened this issue Oct 11, 2017 · 2 comments

Comments

@Rclass93
Copy link

Rclass93 commented Oct 11, 2017

Hey, i came across this problem today. I have icons in the columns headers and if i set up the filter, it shows this message:

Warning: Failed prop type: Invalid prop columnName of type array supplied to TextFilter, expected string.
in TextFilter (created by TableHeaderColumn)
in TableHeaderColumn (created by ListaChamadas)
in tr (created by TableHeader)
in thead (created by TableHeader)
in table (created by TableHeader)
in div (created by TableHeader)
in TableHeader (created by BootstrapTable)
in div (created by BootstrapTable)
in div (created by BootstrapTable)
in BootstrapTable (created by ListaChamadas)
in div (created by Panel)
in div (created by Panel)
in Panel (created by ListaChamadas)
in ListaChamadas (created by displayChamadas)
in div (created by displayChamadas)
in div (created by displayChamadas)
in displayChamadas
in App
in div
in div

If i delete the filter, it doesn't show anymore.
Here's the code:

<TableHeaderColumn dataField='selected_option' dataSort dataAlign="center"
columnClassName={ this.columnClassNameFormat }
filter={{ type: 'TextFilter', delay: 500, placeholder:"Procure"}}
width='16%'> Ação

Thank you

@AllenFang
Copy link
Owner

@Rclass93 this issue was fixed on v4.1.0, thanks :)

@crazyUI
Copy link

crazyUI commented Apr 13, 2018

Hi,

I have a custom column header component. When I add textFilter to it, column disappears.. I am using version 4.3.1.
There is no error or warning in console. If I remove the header component and directly use text, it works fine. Please advise.

Thank you
Lalitha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants