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

Fix double slideChange event bug #9863

Merged

Conversation

dreamofabear
Copy link

Fixes #9835. Tested locally.

/to @camelburrito

@@ -513,6 +513,7 @@ export class AmpSlideScroll extends BaseSlides {
* it available for display.
* @note Element must be laid out.
* @param {number} newIndex Index of the slide to be displayed.
* @return {boolean} true if the slide changed, otherwise false.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Looks good, you should add/update unit tests on this function to check for the boolean values.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@dreamofabear
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants