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

Colmun filter bug in Data Grid #3697

Open
thomaslf97 opened this issue Nov 27, 2024 · 0 comments
Open

Colmun filter bug in Data Grid #3697

thomaslf97 opened this issue Nov 27, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@thomaslf97
Copy link

Describe the bug

Changing to a page then using a column filter in EDS Data Grid results in an empty message when the result count is less than pagination multiplied by the page selected. For instance, a pagination of 10 on page 2 with a result count of 1, will display an empty result because there are only enough results for page 1.

Steps to reproduce the bug

Steps to reproduce bug assumes pagination 10 and result count 1.

  1. Navigate to page 2
  2. Select something from the column filter, giving less than pagination as result count
  3. Observe that the grid displays empty message and 11 - 20 of 1 items
  4. Select page 1 to view the actual result

Expected behavior

The user expects to see a result from the filtering they do. Expected behavior is that the grid returns to page 1 given that there are less results than pagination, and therefore will not be more than 1 page.

Specifications

  • Version: "@equinor/eds-data-grid-react": "0.6.2"
  • Browser: Chrome
  • OS: Windows 11

Additional context

Add any other context or screenshots about the bug. An example in CodeSandbox is very helpful

Image
Image
Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant