We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<md-tabs :md-active-tab="activeTab"> <md-tab id="Studio" :to="{ name: 'Studio' }" md-icon="store"></md-tab> <md-tab id="Orders" :to="{ name: 'Orders' }" md-icon="paid"></md-tab> </md-tabs>
:md-active-tab value should overrule, especially if md-sync-route = false.
:md-active-tab
md-sync-route = false
:md-active-tab value is ignored.
<script> export default { computed: { activeTab() { return this.$router.currentRoute.path.startsWith('/orders') ? 'paid' : 'store' }, }, methods: { updateActiveTab() { setTimeout(() => { const i = document.querySelectorAll('.md-tabs-navigation i') for (const o of i) { o.style.color = this.activeTab === o.textContent ? '#448aff' : 'black' } }) }, }, mounted() { this.updateActiveTab() }, updated() { this.updateActiveTab() }, } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
What is expected?
:md-active-tab
value should overrule, especially ifmd-sync-route = false
.What is actually happening?
:md-active-tab
value is ignored.Workaround
The text was updated successfully, but these errors were encountered: