2193 - Chrome datalist hotfix

This commit is contained in:
Joan Sanchez 2020-03-13 10:49:44 +01:00
parent aba24292cf
commit 298e52e055
1 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,9 @@ export default class Datalist extends Textfield {
this.buildInput('text');
this.input.setAttribute('autocomplete', 'off');
this.input.addEventListener('blur', () => {
console.log('focus out');
});
}
get field() {
@ -258,7 +261,8 @@ export default class Datalist extends Textfield {
fragment.appendChild(option);
}
list.appendChild(fragment);
this.$.$applyAsync(() =>
list.appendChild(fragment));
}
}