forked from DebaucheryLibrarian/traxxx
Fixed scroll to top.
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
/>
|
||||
</Scroll>
|
||||
|
||||
<FilterBar :fetch-releases="fetchReleases" />
|
||||
<FilterBar
|
||||
ref="filter"
|
||||
:fetch-releases="fetchReleases"
|
||||
/>
|
||||
|
||||
<Releases :releases="releases" />
|
||||
|
||||
<Pagination
|
||||
@@ -73,6 +77,8 @@ async function fetchReleases() {
|
||||
|
||||
this.hasMedia = this.tag.poster || this.tag.photos.length > 0;
|
||||
this.description = this.tag.description && converter.makeHtml(escapeHtml(this.tag.description));
|
||||
|
||||
this.$refs.filter.$el.scrollIntoView();
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
@@ -94,7 +100,7 @@ export default {
|
||||
description: null,
|
||||
releases: null,
|
||||
totalCount: 0,
|
||||
limit: 15,
|
||||
limit: 20,
|
||||
pageTitle: null,
|
||||
hasMedia: false,
|
||||
expanded: false,
|
||||
|
||||
Reference in New Issue
Block a user