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

fix(input): autoWidth observe preInput dom instead of input dom #4678

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

Cat1007
Copy link
Collaborator

@Cat1007 Cat1007 commented Oct 24, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复

🔗 相关 Issue

选择器自动宽度偶尔会失效,排查逻辑后发现此处不合理的地方,理论上应该用preInput的resize去更新input,否则若input不发生resize,将无法根据pre更新宽度,易出现于dom挂载后绑定到ref的时机不可知,修正该逻辑,不确定是否为问题成因,未能稳定复现该场景

💡 需求背景和解决方案

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

完成

@uyarn uyarn changed the title fix: 🐛 autoWidth应该由preInput同步至input fix(input): autoWidth observe preInput dom instead of input dom Oct 26, 2024
@uyarn uyarn merged commit 6acf1fa into Tencent:develop Oct 26, 2024
7 checks passed
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.

2 participants