Anujcodecraft/notes-online

## 🐞 Bug: "Next" Button Disabled on PYQs Page After Switching Exam Type

開放

#22 建立於 2025年7月4日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (7 個分叉)auto 404
ReactJsbuggood first issuehelp wanted

倉庫指標

星標
 (7 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

📋 Description

On the PYQs page:

  • When the user selects an exam type like Mini, the pagination updates correctly.
  • However, when the user switches back to "All Types", even though there are multiple questions (e.g., total of 8), the "Next" button becomes disabled.

🔁 Steps to Reproduce

  1. Visit the main website 🌐 Live Demo and navigate to the PYQs(click Browse Pyqs) page.
  2. Select any specific exam type (e.g., "Mini").
  3. Then switch back to "All Types".
  4. Observe that the "Next" button is now disabled, even though there are enough items for pagination.

✅ Expected Behavior

  • When switching back to "All Types", the "Next" button should remain enabled if total items exceed the current page limit.
  • Pagination should work just like it did on first page load.

貢獻者指南