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 5043d04 commit 85d292eCopy full SHA for 85d292e
src/components/index-list/index-list.vue
@@ -10,7 +10,7 @@
10
<h1 class="cube-index-list-title" v-if="title" ref="title" @click="titleClick">
11
{{title}}
12
</h1>
13
- <ul ref="groups">
+ <ul>
14
<slot>
15
<cube-index-list-group v-for="(group, index) in data" :key="index" :group="group" @select="selectItem">
16
</cube-index-list-group>
@@ -135,7 +135,7 @@
135
this._scrollTo(anchorIndex)
136
},
137
_calculateHeight() {
138
- this.groupList = this.$el.querySelectorAll('.cube-index-list-group')
+ this.groupList = this.$el.getElementsByClassName('cube-index-list-group')
139
140
if (!this.groupList) {
141
return
0 commit comments