Skip to content

Pagination not playing nicely with Toolkit table search bar. #495

@dillobird

Description

@dillobird

Looks like there's a bug when using both pagination and the search bar from the toolkit.

To reproduce:

  1. Search for something that returns 0 results using a full table search bar.
  2. Change the rows per page to something other than the current selection. e.g. from 10 to 20.
  3. Clear the search term from the search bar.

It throws the following error and crashes the app:

TypeError: Cannot read property 'name' of undefined

... where 'name' is the keyField passed to the ToolkitProvider.

Any ideas what this might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions