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

官方例子在刷新页面时,Sender的高度会跳动一下 #601

Open
aispin opened this issue Mar 15, 2025 · 2 comments
Open

官方例子在刷新页面时,Sender的高度会跳动一下 #601

aispin opened this issue Mar 15, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@aispin
Copy link

aispin commented Mar 15, 2025

重现步骤

在线示例链接:(https://x.ant.design/docs/playground/independent-cn)

步骤:

  1. 打开上面的网址(chrome,最新版)
  2. 手工刷新页面,注意观察 Sender 组件
  3. Sender 组件的高度会突然变高(目测变高大约16px),页面加载完后才恢复正常

当前行为

页面刷新时,Sender 组件的高度会突然变高

预期行为

Sender 组件的高度不变

上下文

No response

版本

1.0.6

您在哪些浏览器上遇到了这个问题?

Chrome

@aispin aispin added the bug Something isn't working label Mar 15, 2025
Copy link

目前没有找到与您的问题相关的其他报告。您描述的问题似乎是一个独立的问题。

关于这个问题,可能是由于页面加载时样式或布局的计算导致的。建议您检查以下几点:

  1. 样式加载顺序:确保所有相关的 CSS 文件在页面加载时按正确的顺序加载。
  2. 组件初始化:检查组件在初始化时是否有任何动态计算高度的逻辑。
  3. 浏览器缓存:尝试清除浏览器缓存,看看问题是否依然存在。

如果您有进一步的技术细节或需要更多的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@kimteayon
Copy link
Collaborator

初步排查是rc-textarea 高度计算会晚一点渲染

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants