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 bar active not reflecting route #4
Comments
I've been looking at ways of fixing this and it's quite difficult. As a quick fix hacky method I'm adding a route and index property to mdc-tab that I'm passing in as so: {{/mdc-tab-bar}} ` Adding a new method in mdc-tab-bar.js Then finally in mdc-tab.js using didReceiveAttrs checking to see if we're the active route and if so setting the tab on the parentView: }` It's hacky but it works. However I think someone can probably do something tidier so I'm not submitting this as a pull request. If Ahmed's still around it would be good to know if you intend to work any more on this project :) |
I've changed to use includes now : So that I can use multiple routes for the same tab indicator. |
If using the Tab bar, changing tabs changes the route as expected.
However if you then press F5 to refresh the route the mdc-tab-bar__indicator is not under the active title bar
The text was updated successfully, but these errors were encountered: