daily-code
daily-code copied to clipboard
bug: Disabled navigation buttons Prev and Next are still clickable
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
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 .
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.