Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[textarea] 使用 textarea 的 autosize 属性出现中文输入法时高度没撑开 #1852

Closed
94dreamer opened this issue Nov 28, 2022 · 4 comments
Labels
to be published fixed, not be published

Comments

@94dreamer
Copy link
Collaborator

tdesign-vue 版本

0.46.1

重现链接

No response

重现步骤

1、使用 textarea 的 autosize 属性 :autosize="{ minRows: 1 }"
2、正常的情况下字母和数字输入下,文本框高度会随着文本内容撑开高度。
3、但是在换行前使用中文输入法输入拼音,文本框高度不会随着文本内容撑开高度。

期望结果

使用中文输入法输入拼音,文本框高度也会自动撑开,而不是出现滚动条。

下图为 ant react的正确显示

企业微信截图_930ae2a2-63cb-40fb-9d76-e8586bcca540

实际结果

使用中文输入法输入拼音,文本框高度不会自动撑开,而是出现滚动条。
下图为出现滚动条,而不是撑开高度
企业微信截图_c6765f14-22af-4d01-8baf-60fe36dfbe6b

框架版本

Vue2

浏览器版本

No response

系统版本

No response

Node版本

14

补充说明

No response

@github-actions
Copy link
Contributor

👋 @94dreamer,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@94dreamer 94dreamer changed the title [textarea] 描述问题的标题 [textarea] 使用 textarea 的 autosize 属性出现中文输入法时高度没撑开 Nov 28, 2022
@chaishi chaishi added the 🙏 help wanted Extra attention is needed label Nov 28, 2022
@github-actions
Copy link
Contributor

任何人都可以处理此问题。
请务必在您的 pull request 中引用此问题。
感谢你的贡献! ✨

@ZWkang
Copy link
Contributor

ZWkang commented Dec 8, 2022

ref: #1900 @chaishi

@xiaosansiji
Copy link
Collaborator

已在 1.0.2 版本修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

4 participants