Fix auto scroll
This commit is contained in:
parent
cefe333055
commit
efedc19ffb
1 changed files with 6 additions and 4 deletions
|
@ -177,7 +177,7 @@
|
||||||
<div @wheel="minClass(true)" @scroll="minClass(true)">
|
<div @wheel="minClass(true)" @scroll="minClass(true)">
|
||||||
<div class="">
|
<div class="">
|
||||||
<div style="width:100%" @click="minClass(true)">
|
<div style="width:100%" @click="minClass(true)">
|
||||||
<div v-if="showSearch" class="search-input-container" ref="playlist-search">
|
<div v-if="showSearch" class="search-input-container">
|
||||||
<div class="search-input--icon"></div>
|
<div class="search-input--icon"></div>
|
||||||
<input type="search"
|
<input type="search"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
|
@ -845,9 +845,11 @@
|
||||||
this.searchQuery = "";
|
this.searchQuery = "";
|
||||||
this.search();
|
this.search();
|
||||||
} else if (this.showSearch) {
|
} else if (this.showSearch) {
|
||||||
this.$nextTick(() => {
|
|
||||||
// Ensure search bar is visible
|
// Ensure search bar is visible
|
||||||
this.$refs["playlist-search"].scrollIntoView({ behavior: 'smooth' });
|
document.querySelector(".tab-pane.active").scrollTo({
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue