client/general: fix autocomplete control

Regression from d5e197e.
This commit is contained in:
rr- 2016-08-23 23:10:05 +02:00
parent ad8ed89e3c
commit f9754edcce
2 changed files with 2 additions and 2 deletions

View file

@ -215,7 +215,7 @@ class AutoCompleteControl {
const listItem = document.createElement('li');
const link = document.createElement('a');
link.innerHTML = resultItem.caption;
link.setAtribute('href', '');
link.setAttribute('href', '');
link.setAttribute('data-key', resultItem.value);
link.addEventListener(
'mouseenter',

View file

@ -325,7 +325,7 @@ class TagInputControl extends events.EventTarget {
const removalLinkNode = document.createElement('a');
removalLinkNode.classList.add('append');
removalLinkNode.setAttribute('href', '')
removalLinkNode.setAttribute('href', '');
removalLinkNode.setAttribute('data-pseudo-content', '×');
removalLinkNode.addEventListener('click', e => {
e.preventDefault();