From eafd53f99429b6b0b314b9ae873f642a34167a6c Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Sat, 10 Aug 2019 00:25:09 -0400
Subject: [PATCH] fix potential bug to render active tab in controlled way

---
 src/components/tab_switcher/tab_switcher.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>