Return focus to the search field after add depicts
This commit is contained in:
parent
1855a88c5d
commit
3c992d2a97
|
@ -24,6 +24,8 @@ var app = new Vue({
|
||||||
this.new_depicts.push(hit);
|
this.new_depicts.push(hit);
|
||||||
this.hits = [];
|
this.hits = [];
|
||||||
this.searchTerms = '';
|
this.searchTerms = '';
|
||||||
|
var search_field = document.getElementById('search-field');
|
||||||
|
search_field.focus();
|
||||||
},
|
},
|
||||||
run_search() {
|
run_search() {
|
||||||
var terms = this.searchTerms;
|
var terms = this.searchTerms;
|
||||||
|
|
Loading…
Reference in a new issue