ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: No view transitions when going to/from tabs

Open mhartington opened this issue 11 years ago • 60 comments

Type: bug

Platform: all

Codepen http://codepen.io/mhartington/pen/zxdGKd

If you navigate to and from tabs, there are no view transitions. Also, the back button will not show either.

mhartington avatar Jan 27 '15 19:01 mhartington

I think this Codepen describes the issue a bit better: http://codepen.io/squrler/pen/xbLbgV

CoenWarmer avatar Jan 28 '15 01:01 CoenWarmer

I'm seeing the same issue. My issue is the same as the exmaple in @CoenWarmer codepen. Specifically the example of "non nested views".

Off the top of my head I would think it has something to do with navigating to an "abstract" state since you are technically going to one of its children (aka the first tab).

An abstract state can have child states but can not get activated itself. An 'abstract' state is simply a state that can't be transitioned to. It is activated implicitly when one of its descendants are activated. -- Ui-Router Documentation https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views

LanceEa avatar Jan 29 '15 21:01 LanceEa

This used to work in all Ionic versions before beta 14, so in a way it's actually a regression which makes updating our apps especially difficult.

CoenWarmer avatar Feb 03 '15 15:02 CoenWarmer

Funny, just realized I noted this over a year ago: https://github.com/driftyco/ionic/issues/437

CoenWarmer avatar Feb 10 '15 10:02 CoenWarmer

An abstract state isn't a view, but a container of views. Let's say you had 3 tabs, and you go to tab 1 page 1, then tab 1 page 2, then to tab 2 page 1. At tab 2 page 1 you should not have a back button because you switch histories to another tab. This is by design, and exactly how native apps works. If that back button did exist between tabs then it wouldn't know which "back" you mean. Should it go back a page in the same history? Or should it go back to another history?? Again, this is following native's design because there are multiple histories, not a linear one like a standard browser has.

As for the view transition, that too follow's native's default design pattern. However, I'm planning on making it easier to give it a transition if you want.

adamdbradley avatar Feb 11 '15 15:02 adamdbradley

The back button not appearing is less of a problem, since there are a couple of different ways to influence that when you really need one.

I'm just really looking for animations between states that may or may not have tabs. If it's easier to only enable that when the state with tabs only uses non-abstract states, that's great. Basically how it used to work in beta 13 :)

CoenWarmer avatar Feb 11 '15 19:02 CoenWarmer

Possible duplicate: https://github.com/driftyco/ionic/issues/3135

CoenWarmer avatar Feb 18 '15 13:02 CoenWarmer

It would be so, so nice if we could get some traction on this..... It's the one thing that's keeping three of our apps to be upgraded to beta 14... Pretty please? :)

CoenWarmer avatar Feb 24 '15 22:02 CoenWarmer

Adding the possibility to animate transitions between tabs would, indeed, be great. That, and the ability to swipe between tabs.

beauby avatar Mar 04 '15 01:03 beauby

@beauby you misunderstand: this issue is to describe the behavior where state 1 does not contain tabs, and state 2 does contain tabs. If you navigate from state 1 to state 2, in beta 14 there is no transition animation. You immediately are dumped to state 2.

This issue is not about having an animation between tabs on one state. That is not something that native UI frameworks use as default and so not something I expect ionic to support out of the box.

CoenWarmer avatar Mar 04 '15 07:03 CoenWarmer

@beauby , @adamdbradley here is a very simple codepen demonstrating what @CoenWarmer is talking about. Like @CoenWarmer , I understand that there is no transition animation between tabs makes sense. An abstract state and his childs should be seen as one. But if you transition from "STATE1"to another "STATE_WITH_TABS" ,it should have 'navigation' and in his tabs the back button should go back to "STATE1".

http://codepen.io/anon/pen/Qwzama When navigating from HOME to OTHER-PAGE animation and back-button appears, but when navigating from OTHER-PAGE to TABS the animation and back-button is lost.

PedroJusto avatar Mar 20 '15 16:03 PedroJusto

Still an issue in the nightly... (rc1 >)

CoenWarmer avatar Mar 28 '15 11:03 CoenWarmer

@adamdbradley I do not have a full native app dev experience. But from years' experience of using native app, it tells that going from state 'tabs.home' to state 'login' does give users a back button.

Just wonder if this bug is ignored due to some misunderstanding.

hardywu avatar Mar 29 '15 01:03 hardywu

same issue as above...

@beauby , @adamdbradley here is a very simple codepen demonstrating what @CoenWarmer is talking about. Like @CoenWarmer , I understand that there is no transition animation between tabs makes sense. An abstract state and his childs should be seen as one. But if you transition from "STATE1"to another "STATE_WITH_TABS" ,it should have 'navigation' and in his tabs the back button should go back to "STATE1".

http://codepen.io/anon/pen/Qwzama When navigating from HOME to OTHER-PAGE animation and back-button appears, but when navigating from OTHER-PAGE to TABS the animation and back-button is lost.

sgentile avatar Apr 06 '15 20:04 sgentile

I should add, the issue I'm referring to is the 'back-button is lost'

sgentile avatar Apr 07 '15 11:04 sgentile

+1

back-button is lost

Yes, I've seen that I was really confused why is this happening.

Here is the example I used as a base in my project: http://codepen.io/gnomeontherun/pen/tbvdH?editors=101

  • When I click on a tab - no back button.
  • When I click on a link on the page - there is back button.
  • When I click on a item in the side menu - no back button.

Short video: http://screencast.com/t/0gsoogJf

marsitatheultra avatar Apr 10 '15 12:04 marsitatheultra

@sgentile that is exactly the same issue I'm facing right now!

+1

rubocoptero avatar Apr 11 '15 09:04 rubocoptero

I'm having a very similar problem, but not sure if it's the same as others.

I have two main states: 1) Tabs 2) options

All I want to be able to do is navigate from the Tabs state to the options state WITH an animation, but for the life of me I cannot force one. I can manually add the back button to the options page, but again, I'm missing all of the animations.

I also do not want to implement a "Hamburger" menu, but I guess I will if I have to. I think that navigating away from a tabbed interface and being able to go back is completely acceptable for UX. However, I agree that it's a bit odd to navigate TO a tabbed interface and have a back button included.

colesobotka avatar May 03 '15 02:05 colesobotka

+1

yxwu25 avatar May 04 '15 06:05 yxwu25

+1

JerryBels avatar May 04 '15 12:05 JerryBels