mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-18 05:54:28 +08:00
fix(components): [input] memory leak (#9965)
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user