Remove scroll to input
This commit is contained in:
parent
c6d844d4f7
commit
350f119ac4
|
@ -8,9 +8,9 @@
|
|||
</h3>
|
||||
|
||||
<div id="search-anchor" class="search-container">
|
||||
<input placeholder="Keyword, channel, video, etc." autofocus v-on:keyup.enter="scrollToSearchInput(); doNewSearch()" type="text" v-model="formSearch" name="search-text" />
|
||||
<input placeholder="Keyword, channel, video, etc." autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search-text" />
|
||||
|
||||
<button v-on:click="scrollToSearchInput(); doNewSearch()">
|
||||
<button v-on:click="doNewSearch()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search">
|
||||
<circle cx="11" cy="11" r="8"></circle>
|
||||
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||||
|
@ -806,11 +806,6 @@
|
|||
scrollToResults () {
|
||||
const anchor = document.getElementById('results-anchor')
|
||||
if (anchor) anchor.scrollIntoView()
|
||||
},
|
||||
|
||||
scrollToSearchInput () {
|
||||
const anchor = document.getElementById('search-anchor')
|
||||
if (anchor) anchor.scrollIntoView()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"tsc": "tsc",
|
||||
"eslint": "eslint",
|
||||
"lint": "eslint --ext .ts \"server/**/*.ts\"",
|
||||
"build": "rm -r dist && tsc",
|
||||
"build": "rm -r dist && tsc && cd ./client && npm run build",
|
||||
"start": "node dist/server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue