-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
在鸿蒙微信小程序里,taro Input组件 输入框输入快了或按住删除键不放字会来回抖动,不能正常输入或删除;鸿蒙微信小程序中用微信小程序原生组件试了下,相同场景下没有抖动问题 #16809
Comments
TheKonka
added
V-3
Version - 3.x
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
labels
Nov 5, 2024
请问 Android 和 iOS 的微信小程序有没有这个问题 |
This was referenced Nov 9, 2024
用 CustomWrapper 组件包一下,不过包裹后,输入框的宽度得自己计算一下,样式不会继承了的 import { CustomWrapper } from '@tarojs/components';
<CustomWrapper>
<Input
{...filedProps}
className="w-[335px]"
maxLength={field.maxLength || 100}
placeholder={field.placeholder || t_UNSAFE('PLEASE_FILL', '请填写')}
/>
</CustomWrapper> |
Android 和 iOS 的微信小程序没有这个问题,鸿蒙的微信小程序非常明显 |
用CustomWrapper改动成本有点大,还能帮看下有什么统一解决方案吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 3.5.8
使用框架: React
复现步骤
在鸿蒙微信小程序中,输入快了之后或者按住删除键不放,输入框的字会来回抖动,不能正常输入或删除
重现链接:https://github.com/rabbit77/demo-taro-input/tree/main/src (用taro 原生的Input组件就可以复现,但是放到上边的重现链接提交不了,放到重现步骤里提交了)
期望结果
跟原生微信小程序input组件效果一致,快速输入或删除不会抖动
实际结果
在鸿蒙微信小程序中,连续输入输入框会抖动
环境信息
补充信息
业务场景:微信鸿蒙小程序,在表单中,业务中使用时value赋值又用onInput事件赋值setValue。
可能原因:setValue是异步方法,onInput时,setValue赋值给value再展示,可能是异步导致的。
The text was updated successfully, but these errors were encountered: