-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
untriagedneed to sortneed to sort
Description
Describe the bug
以下测试代码中,如果在 textarea 中修改字符串,input的文本会变化,但宽度没有跟着变。
当在input中修改字符串时,宽度能够正常变化。
好像只能通过模拟input事件的方式来解决这个问题。
<template>
<n-space vertical>
<n-input v-model:value="value" type="text" placeholder="Basic Input" autosize/>
<n-input
v-model:value="value"
type="textarea"
placeholder="Basic Textarea"
/>
</n-space>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const value = ref(null)
</script>Steps to reproduce
在 demo 中的 textarea 中输入字符串,input宽度不会变。在input中输入字符串,宽度能正常变化
Link to minimal reproduction
System Info
System:
OS: Windows 11 10.0.26100
CPU: (24) x64 AMD Ryzen 9 9900X 12-Core Processor
Memory: 18.95 GB / 61.61 GB
Binaries:
Node: 22.17.1 - D:\bin\node-v22.17.1-win-x64\node.EXE
npm: 11.4.2 - D:\bin\node-v22.17.1-win-x64\npm.CMD
pnpm: 10.15.0 - D:\bin\node-v22.17.1-win-x64\pnpm.CMD
Browsers:
Chrome: 140.0.7339.187
Edge: Chromium (140.0.3485.54)Used Package Manager
npm
Validations
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
untriagedneed to sortneed to sort