swipeBackEnabled="false" in Ionic 2


#1

I can’t figure out how to turn off swipe to go back. I have a map that this interferes with. I have tried following the docs but the below example does not turn off swipe to go back even though canSwipeBack() returns false.

<ion-nav id="nav" [root]="rootPage" swipeBackEnabled="false"></ion-nav>

Any help would be greatly appreciated.

Thanks,
Isaiah


#2

Anybody have an idea on this? Its really the only think holding me back right now.


#3

If anyones else has a problem here is the solution.

https://github.com/driftyco/ionic/pull/6934


#4

The solution - to add swipeBackEnabled="false" on each worked for me in Ionic 3 as well when I had ion-tabs in the app.