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

Delay in showing initialSlide inside modal #9819

Closed
amuramoto opened this issue Dec 28, 2016 · 3 comments
Closed

Delay in showing initialSlide inside modal #9819

amuramoto opened this issue Dec 28, 2016 · 3 comments

Comments

@amuramoto
Copy link
Contributor

Ionic version: (check one with "x")
[ ] 1.x
[X ] 2.0-RC4

I'm submitting a ... (check one with "x")
[ X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

When using the Slides component with the initialSlide option set inside a Modal component, the first slide appears briefly before switching to the initialSlide.

Expected behavior:
Slide specified by initialSlide should appear when the modal is opened

Steps to reproduce:

Related code:
image-modal.ts

export class ImageModal {

  photos: Array<any>;
  name: string;
  slideOptions: any;

  constructor(params: NavParams) {
    this.photos = params.data.photos;
    this.name = params.data.name;
    this.slideOptions = {
      initialSlide: params.data.startIndex,
      loop: true,
      pager: true
    }
  }

}

template.html

<ion-content padding>  
  <ion-slides [options]="slideOptions">
    <ion-slide *ngFor="let photo of photos">
      <img class="image" [src]="photo.original">
      <ion-item no-padding no-lines>
        <ion-avatar item-left>
          <img [src]="photo.userPhoto">
        </ion-avatar>
        {{photo.user}}
      </ion-item>
    </ion-slide>    
  </ion-slides>  
</ion-content>

Other information:
Video: https://dl.dropboxusercontent.com/u/96909560/slides.mov

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.47
ios-deploy version: 1.9.0 
ios-sim version: Not installed
OS: OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
@jgw96 jgw96 added the v2 label Dec 28, 2016
@mhartington
Copy link
Contributor

This should be resolved in the latest release

@neilhanekom
Copy link

And still not resolved.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 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 Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants