scroll proposal into view
This commit is contained in:
@@ -113,6 +113,9 @@ Vue.component('search-bar-query', {
|
||||
this.highlightedProposal = (this.highlightedProposal-1) % data.searchBar.proposals.length;
|
||||
this.highlightedProposal = this.highlightedProposal < 0 ? -1 : this.highlightedProposal;
|
||||
}
|
||||
if (this.highlightedProposal >= 0){
|
||||
document.getElementById("proposal_"+this.highlightedProposal).scrollIntoView();
|
||||
}
|
||||
},
|
||||
|
||||
noop: function(event){},
|
||||
|
||||
Reference in New Issue
Block a user