zdhxiong / mdui

Material Design 3(Material You) UI components using Web Components.
https://www.mdui.org
4.15k stars 362 forks source link

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

Open wyatt1112 opened 1 month ago

wyatt1112 commented 1 month ago

resizeobserver loop completed with undelivered notifications.

zdhxiong commented 1 month ago

是 bug

wyatt1112 commented 2 weeks ago

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

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

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