New approach to focus search field

This commit is contained in:
Edward Betts 2019-10-16 17:19:30 +01:00
parent 61fd14427d
commit a9ef91b214
2 changed files with 2 additions and 3 deletions

View file

@ -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;