You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOs, after swipe to go back to a page, that page seems to lose data binding. Actions still activate functions, but data are not rendered into view. This doesn't happen if back button on navigation bar was used instead.
Swipe to go back should act the same as back button and not break the page.
Steps to reproduce:
Create a page with
ion-navbar
ion-list with items that push other pages that also have ion-navbar
ion-searchbar with showCancelButton and use ionInput to filter the items in ion-list
Build and run/emulate on iOs
Click on an item to go to another page.
Click back button on navbar
Try search bar to see that the page is still working, the list is updated as user is typing. Notice that when tap on search bar would still display 'Cancel' button on the right side at this step.
Repeat step 3, then go to step 7.
Swipe to go bage to the list page.
Try search bar to see that the list is NOT updated as user is typing. Notice that when tap on search bar, it does NOT display 'Cancel' button on the right side.
Expectation:
At step 8, the page should still be working as in step 5.
I did try implementing ionViewDidEnter for calling ChangeDetectorRef.detectChanges and ChangeDetectorRef.reattach just in case, but they doesn't seem to have any effect.
I saw no error or warning or log in the console (safari web inspector connected to the emulator iOS 9.2).
The issue also happens on IonicView app running on iOS 10.1, iOS 9.3.5.
Ionic Version 2.0.0-rc.1
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.7.1
Xcode version: Xcode 7.2.1 Build version 7C1002
The text was updated successfully, but these errors were encountered:
I am going to close this issue as a duplicate of #8958 for now since that issue is the underlying cause of this issue. Thanks everyone and thanks @netcell for the detailed issue!
Short description of the problem:
On iOs, after swipe to go back to a page, that page seems to lose data binding. Actions still activate functions, but data are not rendered into view. This doesn't happen if back button on navigation bar was used instead.
Check this repository for a source code that is suffering from the problem, modified from the sidemenu starter template
What behavior are you expecting?
Swipe to go back should act the same as back button and not break the page.
Steps to reproduce:
ion-navbar
ion-list
with items that push other pages that also haveion-navbar
ion-searchbar
withshowCancelButton
and useionInput
to filter the items inion-list
Expectation:
At step 8, the page should still be working as in step 5.
Related Information
ionViewWillEnter
orionViewDidEnter
. UPDATE: Please read this comment.ionViewDidEnter
for callingChangeDetectorRef.detectChanges
andChangeDetectorRef.reattach
just in case, but they doesn't seem to have any effect.Ionic Version 2.0.0-rc.1
The text was updated successfully, but these errors were encountered: