Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

Filter is not working. Getting no results

Open tareq0065 opened this issue 7 years ago • 1 comments

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]}
                                />

tareq0065 avatar Aug 31 '18 19:08 tareq0065

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

dahlbyk avatar Sep 01 '18 01:09 dahlbyk