client/tag-input: scroll suggestions up on refresh

This commit is contained in:
rr- 2016-08-24 10:58:58 +02:00
parent 263d4f3626
commit c64453a15c

View file

@ -375,6 +375,7 @@ class TagInputControl extends events.EventTarget {
return;
}
const listNode = this._suggestionsNode.querySelector('ul');
listNode.scrollTop = 0;
while (listNode.firstChild) {
listNode.removeChild(listNode.firstChild);
}