changed timeout to nexttick

This commit is contained in:
Giga Chubinidze 2023-07-03 13:50:44 +04:00
parent 4bc25ac00f
commit b1490c81a0

View file

@ -148,9 +148,9 @@
}); });
this.$nextTick(() => { this.$nextTick(() => {
$(this.$refs.dropdown).on('show.bs.dropdown', () => { $(this.$refs.dropdown).on('show.bs.dropdown', () => {
setTimeout(() => { this.$nextTick(() => {
$('.insert-field-dropdown')[1].focus() $('.insert-field-dropdown')[1].focus()
}, 50); });
this.searchValue = ''; this.searchValue = '';
}); });
}); });