You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is only 1 page the page number is not shown, instead only the disabled buttons are shown.
The correct behaviour is to show the active page number (1) and have the buttons disabled.
fixthemesberg#1048
Steps to reproduce
Current behavior
There is no
![Screenshot 2023-10-06 at 11 33 51](https://private-user-images.githubusercontent.com/3941650/273167316-4fb13454-b469-434e-8e3d-df015c12fccf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY1OTUwNzMsIm5iZiI6MTcxNjU5NDc3MywicGF0aCI6Ii8zOTQxNjUwLzI3MzE2NzMxNi00ZmIxMzQ1NC1iNDY5LTQzNGUtOGUzZC1kZjAxNWMxMmZjY2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjRUMjM1MjUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzZmNGM0MjI3ZDVmZDIxZGE3NzVjNTVkM2EyN2VjNjA5YjU1YzVjODg2YWFiYWQ1ZTZjMmQ3YjkxZWU3OGZkNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.cTijLCTUVZH2lKz91ZPzaWe4n0CwQPNC2fL878QNDCM)
1
between the arrows, just two buttons (previous and next)Expected behavior
1
is shown between the arrows, similarly to the case when we have 2 and more pages.Context
I would like to show the
Pagination
component with only one page when user has a small amount of data.The problem is in
range
function, where this check is containedI would assume it should be
but not sure whether this breaks the expected behaviour from your side. If you are fine I can create the PR.
Thanks,
Sergii
The text was updated successfully, but these errors were encountered: