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

[4.0.0-beta.12] slides auto play per default #15766

Closed
peterpeterparker opened this issue Sep 26, 2018 · 2 comments
Closed

[4.0.0-beta.12] slides auto play per default #15766

peterpeterparker opened this issue Sep 26, 2018 · 2 comments
Labels

Comments

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Sep 26, 2018

Bug Report

Ionic Info

Ionic Angular v4.0.0-beta-12

Describe the Bug
Upgrading to Ionic Angular v4.0.0-beta.12 has for effect that all my sliders where "auto playing" themselves per default

Related Code
Just sliders

<ion-slides #mySlider pager="true">
  <ion-slide>
      Something
  </ion-slide>
  <ion-slide>
      Something else
  </ion-slide>
 </ion-slides>

Expected Behavior
Per default, the slides should not auto play

Workaround
Calling stopAutoplay when the slides is loaded is a workaround

 <ion-slides #mySlider pager="true" (ionSlidesDidLoad)="stopSlideAutoplay()">
 </ion-slides>
 
 @ViewChild('mySlider') slider: Slides;
 
 async stopSlideAutoplay() {
    await this.slider.stopAutoplay();
}

or settings the options autoplay to false

options: {
  autoplay: false
}

<ion-slides #mySlider pager="true" [options]="options">
@netsesame2
Copy link

Thanks, it works.

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 29, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants