Dataviews Pagination: Deleting the last item on a page should navigate to the previous page (if exists) instead of showing No results
#68707
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When there is only one data item on a page in the
DataViewsPagination
component, and that item is deleted, the pagination should automatically navigate to the previous page.Currently, the behavior results in displaying a 'No results' message, which is not the expected behavior. This issue needs to be addressed to improve the user experience by ensuring that the pagination correctly navigates to the previous page (if exists) when the last item on the current page is deleted.
This can be reproduced in both
All Patterns
andAll Templates
pages.Step-by-step reproduction instructions
site editor
.Patterns
.Screenshots, screen recording, code snippet
issue.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: