Skip to content

Commit

Permalink
fix(VTabs): correctly set active state with exact prop (#14500)
Browse files Browse the repository at this point in the history
fixes #14431
fixes #14459
  • Loading branch information
Florent-Bouisset committed Dec 27, 2021
1 parent 03e683f commit 74ec950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/mixins/routable/index.ts
Expand Up @@ -140,8 +140,8 @@ export default Vue.extend({
},
onRouteChange () {
if (!this.to || !this.$refs.link || !this.$route) return
const activeClass = `${this.activeClass} ${this.proxyClass || ''}`.trim()
const exactActiveClass = `${this.exactActiveClass} ${this.proxyClass || ''}`.trim() || activeClass
const activeClass = `${this.activeClass || ''} ${this.proxyClass || ''}`.trim()
const exactActiveClass = `${this.exactActiveClass || ''} ${this.proxyClass || ''}`.trim() || activeClass

const path = '_vnode.data.class.' + (this.exact ? exactActiveClass : activeClass)

Expand Down

0 comments on commit 74ec950

Please sign in to comment.