form
form copied to clipboard
[email protected] 在配合antd-mobile时使用getFieldProps,不能输入中文。
<InputItem type="text"
{......getFieldProps('xxxx', {
rules: [
{required: true, message: '请输入xxxx'}],
})}>
{...}
</InputItem>
输入框一旦输入中文就会触发重新render,中文输入法的框打开一瞬间立刻关闭,input里面出现一个键入的英文
Please provide a re-producible demo: http://codepen.io/benjycui/pen/NdQdBw?editors=0011
Ok, here is repo: https://snack.expo.io/Byptk4Ghf. Please use Expo on your device to run it. This problem occurs only when you use rc-form.
the same problem on ios, android works well
the same problem on ios
@Evanxuke 用getFieldDecorator没问题