appsmith: [Bug]: Disable clicking on Next page button when Table record reached to last page

Is there an existing issue for this?

  • I have searched the existing issues

Description

In Table widget, when pagination reach to it’s last page the icon seems disabled but we can still Click on it and see rendering of data.

Steps To Reproduce

  1. Drag & drop a Table widget
  2. Run a server side pagination query SELECT * FROM users ORDER BY id LIMIT {{Table2.pageSize}} offset {{Table2.pageOffset}}
  3. Enable server side pagination and configure onPageChange & Total records
  4. Reach to last page of the table records
  5. Observe that Next page button is disabled but clickable

Public Sample App

No response

Environment

Production

Issue video log

https://www.loom.com/share/bad8d690647c4583b7e82d6092a1ccbe

Version

Cloud / Production

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Hi, is this issue still open, and it is client-side only?, I want to contribute

@harshitpandey0426 thanks for showing interest but the PR has already been raised for it.

@harrybasra95 can you proceed with the JS solution where we add a disable condition to the onClick event

Greetings @avijeetpandey thanks for showing interest 🎉 , This is all your. Assigning this to you now.

Please don’t forget to read the Contribution Guidelines. Would appreciate if you can open a PR within the next 2 days. let us know here