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

Textfield 设置为 autosize 时,用js使其value=""(清空),高度不会自动复原,并且控制台有错误 #347

Closed
wyatt1112 opened this issue Aug 27, 2024 · 2 comments

Comments

@wyatt1112
Copy link

wyatt1112 commented Aug 27, 2024

resizeobserver loop completed with undelivered notifications.

@zdhxiong
Copy link
Owner

是 bug

@wyatt1112
Copy link
Author

wyatt1112 commented Sep 28, 2024

我用这样的方法暂时解决这个问题:

TextField.value = ''; //设置值

TextField.style.display = 'none';
setTimeout(function() {
  TextField.style.display = 'block';
}, 0); //"刷新"

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