New approach to focus search field
This commit is contained in:
parent
61fd14427d
commit
a9ef91b214
2 changed files with 2 additions and 3 deletions
|
|
@ -24,8 +24,7 @@ var app = new Vue({
|
|||
this.new_depicts.push(hit);
|
||||
this.hits = [];
|
||||
this.searchTerms = '';
|
||||
var search_field = document.getElementById('search-field');
|
||||
search_field.focus();
|
||||
this.$refs.search.focus();
|
||||
},
|
||||
run_search() {
|
||||
var terms = this.searchTerms;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue