diff --git a/front/core/components/datalist/index.js b/front/core/components/datalist/index.js index d52e6ca23..d74de4643 100644 --- a/front/core/components/datalist/index.js +++ b/front/core/components/datalist/index.js @@ -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)); } }