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 is not working. Getting no results #831

Open
tareq0065 opened this issue Aug 31, 2018 · 1 comment
Open

Filter is not working. Getting no results #831

tareq0065 opened this issue Aug 31, 2018 · 1 comment

Comments

@tareq0065
Copy link

tareq0065 commented Aug 31, 2018

Griddle version

1.13.0 and 1.13.1

Expected Behavior

The filter textbox must have to work. After typing something must show results if matched.

Actual Behavior

When I am trying to type something the table showing "no results"

Steps to reproduce

just installed and added the common props and local plugin

Pull request with failing test or storybook story with issue

no

Here is my code I am trying to

<Griddle
                                    textProperties={{ filterPlaceholder: 'Search . . .' }}
                                    styleConfig={{
                                        icons: {
                                            TableHeadingCell: {
                                                sortDescendingIcon: <Icon type="up" />,
                                                sortAscendingIcon: <Icon type="down" />,
                                            },
                                        },
                                        classNames: {
                                            Row: 'ant-table-row  ant-table-row-level-0',
                                            Table: '',
                                            TableHeading: 'ant-table-thead',
                                            TableBody: 'ant-table-tbody',
                                            Filter: 'ant-input',
                                            PageDropdown: 'ant-select-selection ant-select-selection--single',
                                            NextButton: 'ant-btn ant-btn-primary',
                                            PreviousButton: 'ant-btn ant-btn-primary',
                                            Pagination: 'ant-pagination',
                                            Cell: 'griddle-cell',
                                            Loading: 'griddle-loadingResults',
                                            NoResults: 'griddle-noResults',
                                            RowDefinition: 'griddle-row-definition',
                                            Settings: 'griddle-settings',
                                            SettingsToggle: 'griddle-settings-toggle',
                                            TableHeadingCell: 'griddle-table-heading-cell',
                                            TableHeadingCellAscending: 'griddle-heading-ascending',
                                            TableHeadingCellDescending: 'griddle-heading-descending',
                                        },
                                        styles: {
                                            Table: {},
                                        }
                                    }}
                                    enableSettings={false}
                                    events={{
                                        onFilter: (filterText) => {},
                                        onSort: (sortProperties) => {},
                                        onNext: () => {},
                                        onPrevious: () => {},
                                        onGetPage: (pageNumber) => {},
                                    }}
                                    data={this.state.filedata}
                                    plugins={[plugins.LocalPlugin]}
                                />
@dahlbyk
Copy link
Contributor

dahlbyk commented Sep 1, 2018

Interesting. What's the shape of your filedata? The filter tests in the Storybook work for me; can you confirm?

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

2 participants