Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab on/off state doesn't react to Router.go #242

Closed
lorensr opened this issue Jul 13, 2015 · 2 comments
Closed

Tab on/off state doesn't react to Router.go #242

lorensr opened this issue Jul 13, 2015 · 2 comments

Comments

@lorensr
Copy link

lorensr commented Jul 13, 2015

Eg if I'm on news and call Router.go 'todos'. The todos route is rendered, but the news icon is still on the iconOn version. Note that:

  • If I click on todos tab icon, it works as expected
  • My #ionTabs is in an IR layout that is shared between the two routes, and is not rerendered when switching between them.
{{#ionTabs class="tabs-positive tabs-icon-top"}}
  {{> ionTab title="News" path="news" iconOff="ios-paper" iconOn="ios-paper"}}
  {{> ionTab title="Todos" path="todos" iconOff="checkmark-circled" iconOn="checkmark-circled"}}
  {{> ionTab title="Profile" path="profile" iconOff="person" iconOn="person"}}
{{/ionTabs}}
@nickw
Copy link

nickw commented Aug 25, 2015

For now you should be able to manually set Session.set('ionTab.current').

@nickw nickw closed this as completed Aug 25, 2015
@ouya99
Copy link

ouya99 commented Nov 9, 2015

I open a screen with a navbackbutton:

{{#contentFor "headerButtonLeft"}}
    {{#if gotolist}}
        {{>ionNavBackButton path='tabs.list' }}
    {{/if}}

on returning from the settings screen with the latter backbutton, the Session.get('ionTab.current') I use to manually set the tab and determine status gets manipulated to "/tabs/list" whereas I need it to be "tabs.list" (iron router path). My browser path is "/tabs/list" but nowhere in my code do I set ionTab.current to other version. I assume it must be set internally when pressing the navbackbutton.
Can I change this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants