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

TablePagination: NativeSelect should default to rowsPerPage #1599

Open
silvalaura opened this issue Dec 12, 2024 · 0 comments
Open

TablePagination: NativeSelect should default to rowsPerPage #1599

silvalaura opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@silvalaura
Copy link
Collaborator

Describe the bug
Dropdown with numbers of rows shows by default the first value in the list, and does not respect the rowsPerPage initial value.

Seems the TablePagination has uncontrolled NativeSelect with no initial value.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/table-with-pagination-rows-per-page-not-respected-by-native-select-4h6s5v
  2. Notice that rowsPerPage is set to 20
  3. Notice that the native select defaults to 10 when it should match the rowsPerPage value (20 in this example)

Expected behavior
NativeSelect component should have a default value that matches rowsPerPage

Screenshots
image

@silvalaura silvalaura added the bug Something isn't working label Dec 12, 2024
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
Status: To Do
Development

No branches or pull requests

1 participant