Skip to content

Conversation

@c01dwave
Copy link

@c01dwave c01dwave commented Dec 4, 2025

Description

Fix #7269

When using type="text" input with autosize prop, if the bound value is modified externally (e.g., from another textarea sharing the same v-model), the input width does not update accordingly.

Root Cause

The watch logic for syncing mirror only triggered when autosize && type === 'textarea', which excluded type="text" inputs from receiving external value change updates.

Solution

Remove the type === 'textarea' condition so that all autosize inputs (both text and textarea) will sync their dimensions when the value changes from outside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

设置了autosize的input控件,当绑定的字符串修改后,宽度没有自适应改变

1 participant