Skip to content

[4.0.0-beta.16] ion-slides not working properly on fresh page load #16364

@bergben

Description

@bergben

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.


   ionic (Ionic CLI)             : 4.3.1 (C:\Users\***\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.16
   @angular-devkit/build-angular : 0.10.6
   @angular-devkit/schematics    : 7.0.6
   @angular/cli                  : 7.0.6
   @ionic/angular-toolkit        : 1.2.0

System:

   NodeJS : v10.13.0 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Describe the Bug
Ionic Slides Component is not working when the page is refreshed.

Steps to Reproduce
Steps to reproduce the behavior:

  1. ionic start tester tabs --type=angular
  2. In home.html add Slides like so:
    <ion-slides>
        <ion-slide>
            <h1>Slide 1</h1>
        </ion-slide>
        <ion-slide>
            <h1>Slide 2</h1>
        </ion-slide>
        <ion-slide>
            <h1>Slide 3</h1>
        </ion-slide>
    </ion-slides>
</ion-content>
  1. ionic serve
  2. Refresh the page where the slides are on with F5 (without needing to navigate)
  3. Slides component is broken (sliding not working etc.)

Related Code
See steps to reproduce

Expected Behavior
Slides component should still work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions