Skip to content

Commit

Permalink
Allow setting default tab
Browse files Browse the repository at this point in the history
This is very useful when turning off caching

spatie#69
  • Loading branch information
Ben Roberts committed Jul 2, 2018
1 parent 88b969c commit 6d6bee1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
return;
}
if(this.options.defaultTabHash && this.findTab(this.options.defaultTabHash)) {
this.selectTab(this.options.defaultTabHash);
return;
}
if (this.tabs.length) {
this.selectTab(this.tabs[0].hash);
}
Expand Down

0 comments on commit 6d6bee1

Please sign in to comment.