mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 17:09:45 +08:00
changed timeout to nexttick
This commit is contained in:
parent
4bc25ac00f
commit
b1490c81a0
1 changed files with 2 additions and 2 deletions
|
@ -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 = '';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue