daily-code icon indicating copy to clipboard operation
daily-code copied to clipboard

bug: Disabled navigation buttons Prev and Next are still clickable

Open Amit-K-007 opened this issue 1 year ago • 2 comments

Bug Description

The "Previous" and "Next" buttons for navigating slides remain clickable even when disabled (either on the first or last slide), causing unnecessary re-renders of the page.

Expected Behavior

  • The buttons should not be clickable when disabled, and the cursor should show the "not-allowed" property when hovering over them.

Steps to Reproduce

  • Navigate to the first slide and click the "Prev" button.
  • Navigate to the last slide and click the "Next" button.

Demo

https://github.com/user-attachments/assets/1be39057-6b95-48e0-8ba9-7151c257992a

Amit-K-007 avatar Sep 28 '24 18:09 Amit-K-007

when we click first time on previous or next button for a particular page that page renders only one time , if we click again for that page it does not re-rendered , i tried this and on network tab request went only first click for particular page .

Blackhammer98 avatar Oct 07 '24 18:10 Blackhammer98

Ya, but as Link component is still clickable, the user is just getting redirected on same page again and again. You can notice it by seeing a blue loading line which appears on top of screen.

Amit-K-007 avatar Oct 07 '24 18:10 Amit-K-007