From a6e8988a4f1d04860ca8b2a1046d2ba35d34b9b8 Mon Sep 17 00:00:00 2001 From: John Leider Date: Wed, 24 Oct 2018 16:16:06 -0400 Subject: [PATCH] refactor(example): update tabs logic --- src/components/helpers/Example.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/helpers/Example.vue b/src/components/helpers/Example.vue index afaa46c44..61eba28ed 100755 --- a/src/components/helpers/Example.vue +++ b/src/components/helpers/Example.vue @@ -83,6 +83,7 @@ v-tab( v-for="tab in tabs" :key="tab" + :href="`#${tab}`" v-show="parsed[tab]" active-class="" class="body-2" @@ -92,8 +93,8 @@ ) v-tab-item( v-for="tab in tabs" - :id="null" :key="tab" + :value="tab" ) helpers-markup(lang="html" v-if="parsed[tab]").ma-0 | {{ parsed[tab] }} @@ -188,7 +189,7 @@ watch: { panel () { - this.$nextTick(this.$refs.tabs.callSlider) + requestAnimationFrame(this.$refs.tabs.callSlider) } },