diff options
| author | taehoon <th.dev91@gmail.com> | 2019-08-10 00:25:09 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-08-15 13:25:38 -0400 |
| commit | eafd53f99429b6b0b314b9ae873f642a34167a6c (patch) | |
| tree | 3b507f64a4844d42aa1b6bcf1233c3942ca0a273 /src/components/tab_switcher | |
| parent | 9dd9ba0205cde312f78c510188c98f2be5cf6b2c (diff) | |
fix potential bug to render active tab in controlled way
Diffstat (limited to 'src/components/tab_switcher')
| -rw-r--r-- | src/components/tab_switcher/tab_switcher.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/tab_switcher/tab_switcher.js b/src/components/tab_switcher/tab_switcher.js index e0d4572c..816d61eb 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -71,7 +71,7 @@ export default Vue.component('tab-switcher', { const contents = this.$slots.default.map((slot, index) => { if (!slot.tag) return - const active = index === this.active + const active = this.isActiveTab(index) if (this.renderOnlyFocused) { return active ? <div class="active">{slot}</div> |
