diff --git a/app/javascript/vue/label_template/insert_field_dropdown.vue b/app/javascript/vue/label_template/insert_field_dropdown.vue index 700e3f490..64a6a0e8f 100644 --- a/app/javascript/vue/label_template/insert_field_dropdown.vue +++ b/app/javascript/vue/label_template/insert_field_dropdown.vue @@ -148,9 +148,9 @@ }); this.$nextTick(() => { $(this.$refs.dropdown).on('show.bs.dropdown', () => { - setTimeout(() => { + this.$nextTick(() => { $('.insert-field-dropdown')[1].focus() - }, 50); + }); this.searchValue = ''; }); });