-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix Slider Next action when per-view is added #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, @junaidbhura please can you please review this?
Thanks @benerd have you tested this on ET? |
The issue this PR addresses occurs when the per-view attribute is set to a value greater than 1. While navigating to the last item by pressing the next button, the current logic only checks if the current slide index is on the last item before stopping the slide. However, with a per-view value (e.g., 2), the last item is already in view when the current slide index is on the second-to-last item. Therefore, the slider should not continue advancing. Currently, this results in empty spaces appearing at the end of the slider. Screen.Recording.2024-09-06.at.10.05.34.AM.mov |
@harshdeep-gill Can you please provide the sample usage code with settings? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harshdeep-gill Thanks for the call. As per the discussion and findings we need to fix following issues.
Need to add disable attributes to Previous and Next buttons when slides end.
Pagination should work properly with the steps.
cc: @junaidbhura
Hi @sagarjadhav , As discussed there were two more issues that aroused with fixing the per-view issue - those were, slider-nav buttons were not in sync with step variable and while moving to the last image next button was not getting the disabled:"yes" attribute. In the latest commit these two issues are being fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Fix Slider Next action when per-view is added.