We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034f3d8 commit 863c618Copy full SHA for 863c618
src/components/scroll-nav-bar/scroll-nav-bar.vue
@@ -8,7 +8,7 @@
8
<div class="cube-scroll-nav-bar-items" ref="items">
9
<div
10
class="cube-scroll-nav-bar-item"
11
- v-for="(txt, index) in txts"
+ v-for="(txt, index) in usedTxts"
12
:key="index"
13
:class="{'cube-scroll-nav-bar-item_active': active === labels[index]}"
14
@click="clickHandler(labels[index])">
@@ -73,13 +73,14 @@
73
},
74
data() {
75
return {
76
- active: this.current
+ active: this.current,
77
+ usedTxts: this.txts
78
}
79
80
watch: {
81
labels(newLabels) {
82
if (this._defaultTxts) {
- this.txts = newLabels
83
+ this.usedTxts = newLabels
84
85
86
current(newVal) {
0 commit comments