- Notifications
You must be signed in to change notification settings - Fork 431
Open
Labels
Description
Describe the bug
An error happens when clearing the search bar after changing the number of results per page.
To Reproduce
Steps to reproduce the behavior:
- Standard table with custom search component and pagination
- Search something so that the search returns ZERO results
- Change the number of results per page on the pagination
- Clear the search with the "clear button" (which calls the onClear() prop)
- Error:
TypeError Cannot read property 'id' of undefined
codesandbox
https://codesandbox.io/s/react-bootstrap-table-next-custom-search-with-clear-button-ugd2v
dacevedo12