Return focus to the search field after add depicts

This commit is contained in:
Edward Betts 2019-10-16 16:18:09 +01:00
parent 1855a88c5d
commit 3c992d2a97

View file

@ -24,6 +24,8 @@ var app = new Vue({
this.new_depicts.push(hit);
this.hits = [];
this.searchTerms = '';
var search_field = document.getElementById('search-field');
search_field.focus();
},
run_search() {
var terms = this.searchTerms;