fix(components): [input] memory leak (#9965)

This commit is contained in:
Xc
2022-10-02 09:23:53 +08:00
committed by GitHub
parent a03cf125fd
commit 7b2f1c5bb9

View File

@ -504,7 +504,7 @@ watch(
}
)
onMounted(async () => {
onMounted(() => {
if (!props.formatter && props.parser) {
debugWarn(
'ElInput',
@ -513,13 +513,11 @@ onMounted(async () => {
}
setNativeInputValue()
updateIconOffset()
await nextTick()
resizeTextarea()
nextTick(resizeTextarea)
})
onUpdated(async () => {
await nextTick()
updateIconOffset()
onUpdated(() => {
nextTick(updateIconOffset)
})
defineExpose({