mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [autocomplete] tooltip offset (#12216)
* fix(components): [autocomplete] tooltip offset * fix(components): [autocomplete] remove nextTick
This commit is contained in:
@@ -101,13 +101,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {
|
||||
computed,
|
||||
nextTick,
|
||||
onMounted,
|
||||
ref,
|
||||
useAttrs as useRawAttrs,
|
||||
} from 'vue'
|
||||
import { computed, onMounted, ref, useAttrs as useRawAttrs } from 'vue'
|
||||
import { debounce } from 'lodash-unified'
|
||||
import { onClickOutside } from '@vueuse/core'
|
||||
import { Loading } from '@element-plus/icons-vue'
|
||||
@@ -177,8 +171,7 @@ const refInput = computed<HTMLInputElement[]>(() => {
|
||||
return []
|
||||
})
|
||||
|
||||
const onSuggestionShow = async () => {
|
||||
await nextTick()
|
||||
const onSuggestionShow = () => {
|
||||
if (suggestionVisible.value) {
|
||||
dropdownWidth.value = `${inputRef.value!.$el.offsetWidth}px`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user