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 be50af0 commit 7af0a06Copy full SHA for 7af0a06
components/OneChangelog.vue
@@ -81,6 +81,7 @@
81
:key="version"
82
class="version-item"
83
data-md
84
+ :data-version="version"
85
>
86
<h2
87
:id="getHash(version)"
@@ -328,6 +329,14 @@ export default {
328
329
)
330
if (index !== -1 && index !== 0) {
331
this.page = Math.floor(index / this.pageSize) + 1
332
+
333
+ this.$nextTick(() => {
334
+ const item = this.$el.querySelector(`[data-version="${version}"]`)
335
+ if (item) {
336
+ item.dataset.target = ''
337
+ item.scrollIntoView()
338
+ }
339
+ })
340
}
341
342
},
0 commit comments