diff options
| author | taehoon <th.dev91@gmail.com> | 2019-08-09 23:48:08 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-08-15 13:25:38 -0400 |
| commit | df3e80b7c3fc91cbd62764be467d1dfe28b4b299 (patch) | |
| tree | 266b9addd6c988322da35a291cb6d9dbf5c6b00e /src/components/tab_switcher/tab_switcher.js | |
| parent | cd14566a34013e65b603a71208d058871e992956 (diff) | |
use key prop instead of dataset to identify active tab
Diffstat (limited to 'src/components/tab_switcher/tab_switcher.js')
| -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 ff99e3e7..b26040ff 100644 --- a/src/components/tab_switcher/tab_switcher.js +++ b/src/components/tab_switcher/tab_switcher.js @@ -20,7 +20,7 @@ export default Vue.component('tab-switcher', { activateTab (index, dataset) { return () => { if (typeof this.onSwitch === 'function') { - this.onSwitch.call(null, this.$slots.default[index].elm.dataset) + this.onSwitch.call(null, this.$slots.default[index].key) } this.active = index } |
