Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Disabled navigation buttons Prev and Next are still clickable #667

Open
Amit-K-007 opened this issue Sep 28, 2024 · 2 comments · May be fixed by #668
Open

bug: Disabled navigation buttons Prev and Next are still clickable #667

Amit-K-007 opened this issue Sep 28, 2024 · 2 comments · May be fixed by #668
Labels
bug Something isn't working needs-triage

Comments

@Amit-K-007
Copy link

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

bug.mp4
@Blackhammer98
Copy link

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 .

@Amit-K-007
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants