ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.07k stars 13.51k forks source link

[Ionic v4-beta.3] The page "state" is lost when pushing a new page #15218

Closed sebaferreras closed 6 years ago

sebaferreras commented 6 years ago

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.3
   @angular-devkit/core       : 0.7.3
   @angular-devkit/schematics : 0.7.3
   @angular/cli               : 6.1.3
   @ionic/ng-toolkit          : 1.0.6
   @ionic/schematics-angular  : 1.0.5

Capacitor:

   capacitor (Capacitor CLI) : 1.0.0-beta.6
   @capacitor/core           : 1.0.0-beta.6

System:

   NodeJS : v8.11.1 (/usr/local/bin/node)
   npm    : 5.10.0
   OS     : macOS High Sierra

Describe the Bug

When pushing a new page, the "state" of the previous page is lost (for example, the current position where the user has scrolled to).

Steps to Reproduce

  1. Go to the ListPage
  2. Scroll down to, for example, the item number 38
  3. Click on that item in order to open the ItemDetailsPage
  4. Click on the back arrow button to go back to the ListPage
  5. Now you need to scroll again if you want to see the item number 38

ionic4

Related Code You can reproduce the issue using this GitHub demo.

Expected Behavior If I scrolled down to the item number 38 before pushing the ItemDetailsPage, I'd expect to be in the same position when coming back to the page.

bashoogzaad commented 6 years ago

Same as #14737

sebaferreras commented 6 years ago

Thanks @bashoogzaad. I'm closing this issue since it's a duplicate of that one.

ionitron-bot[bot] commented 6 years ago

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.