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

在dialog里面嵌套input框,input框里的内容会抖动 #3078

Open
luoxin59420 opened this issue Aug 16, 2024 · 3 comments
Open

在dialog里面嵌套input框,input框里的内容会抖动 #3078

luoxin59420 opened this issue Aug 16, 2024 · 3 comments

Comments

@luoxin59420
Copy link

<t-dialog
visible="{{showWithInput}}"
title="带输入框对话框"
confirm-btn="确定"
cancel-btn="取消"
bind:confirm="closeDialog"
bind:cancel="closeDialog"



在dialog里面嵌套input框,input框里的内容会抖动,该怎么处理呢?

Copy link
Contributor

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

@xieerduos
Copy link

<t-dialog visible="{{showWithInput}}" title="带输入框对话框" confirm-btn="确定" cancel-btn="取消" bind:confirm="closeDialog" bind:cancel="closeDialog"

在dialog里面嵌套input框,input框里的内容会抖动,该怎么处理呢?

显示的时候 - input中的文本会自动往下动一下

@xieerduos
Copy link

<t-dialog visible="{{showWithInput}}" title="带输入框对话框" confirm-btn="确定" cancel-btn="取消" bind:confirm="closeDialog" bind:cancel="closeDialog"

在dialog里面嵌套input框,input框里的内容会抖动,该怎么处理呢?

@luoxin59420 添加css代码animation: none;transition: none可以解决抖动的问题

<t-dialog style="animation: none;transition: none"></t-dialog>

#489 (comment)

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

No branches or pull requests

2 participants