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

Slider click handler fix #421

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Slider click handler fix #421

merged 1 commit into from
Sep 23, 2019

Conversation

ddelpiano
Copy link
Contributor

Fixed the issue related to the slider/image click that sometimes load the wrong id.
Rather than tweak the css as previously done (we already worked on this previously last year) I am taking a different path.

imagesData will be used to keep track of the list of ids present in the slider for every load of the term info and the index property will point to the image currently displayed.
The slick's api call "afterChange" is used to change the imagesData.index and point to the image currently displayed.
As soon as we click on the image of the slider, we will use the imagesData information to load the right id.

@ddelpiano ddelpiano added the bug label Sep 23, 2019
@ddelpiano ddelpiano self-assigned this Sep 23, 2019
@Robbie1977 Robbie1977 merged commit 0e067e6 into development Sep 23, 2019
@ddelpiano ddelpiano deleted the fix/420 branch April 12, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants