Skip to content

Commit

Permalink
Merge pull request #2569 from bisubus/steps-named-routes-fix
Browse files Browse the repository at this point in the history
Fix current tab for named routes in Steps
  • Loading branch information
tugcekucukoglu authored Jun 1, 2022
2 parents e325a0a + 794bc56 commit a6acfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/steps/Steps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
}
},
isActive(item) {
return this.activeRoute === item.to || this.activeRoute === item.to + '/' ;
return item.to ? this.$router.resolve(item.to).path === this.$route.path : false;
},
getItemClass(item) {
return ['p-steps-item', item.class, {
Expand Down

0 comments on commit a6acfb3

Please sign in to comment.