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

[MdTabs] md-sync-route issue #1897

Closed
rbayley opened this issue Aug 8, 2018 · 1 comment
Closed

[MdTabs] md-sync-route issue #1897

rbayley opened this issue Aug 8, 2018 · 1 comment

Comments

@rbayley
Copy link

rbayley commented Aug 8, 2018

Hi,
This is my basic structure

<md-app>
  <md-app-toolbar class="md-primary" md-elevation="1">
	<!-- My toolbar content -->
  </md-app-toolbar>
  <md-app-drawer md-permanent="clipped">
	<!-- My drawer content -->
  </md-app-drawer>
  <md-app-content class="data-container">
    <router-view></router-view>
  </md-app-content>
</md-app>

Drawer content is specified here #1896

content render from router-view is as follows.

<md-tabs md-sync-route md-alignment="fixed">
  <md-tab v-for="(tab, key) in this.tabs" :key="key" :id="key"
	:md-label="$t(key)" :to="{ name: key  }">
  </md-tab>
</md-tabs>
<router-view class="content"></router-view>

contents are rendered correctly, but the tab is incorrectly highlighted.
I checked the rendered html and classes "router-link-exact-active router-link-active" are correctly set.

Not only I cant get the correct tab to be highlighted but also when I click on any other tab, although the html is set correctly setting classes "router-link-exact-active router-link-active" I have to click two times for the tab to get highlighted.

Hope I made myself clear.
What am I doing wrong ?

Thanks !

Ricardo

@VdustR
Copy link
Member

VdustR commented Aug 9, 2018

Vue Router would be fully supported on next release

#1651

@VdustR VdustR closed this as completed Aug 9, 2018
@VdustR VdustR added the next label Aug 9, 2018
@VdustR VdustR changed the title md-tabs: md-sync-route issue [MdTabs] md-sync-route issue Aug 9, 2018
@Samuell1 Samuell1 removed the next label Aug 9, 2018
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