form icon indicating copy to clipboard operation
form copied to clipboard

React High Order Form Component(web & react-native)

Results 104 form issues
Sort by recently updated
recently updated
newest added

createDOMForm.js 中的 validateFieldsInternal 函数在校验规则中 存在 type: 'array' 与 特定 prop 时,会出现检验信息不对应的情况。 示例代码地址:https://codesandbox.io/s/6l57rkxoyz debug 发现出错位置大约在下面部分 ` var restPath = errorFieldName.slice(ruleFieldName.length + 1); if (/\d+/.test(restPath)) { fieldName = ruleFieldName; return true; }...

I want to use getFieldDecorator() to help validating my form item but don't want any error message show up when validation fails. Is there a way to achieve this? I...

准备实现一个 validate 静默版本 ```js const fieldsProps = columns .map(item => { return item.dataIndex; }) .reduce((obj, dataIndex) => { obj[dataIndex] = this.props.form.getFieldProps(dataIndex); // 这里 getFieldProps 应该使用方法是不对的,就是想获取 rules 等信息 return obj; },...

[515行](https://github.com/react-component/form/blob/15ccb2712e986f6271067d751a0133fedecf6443/src/createBaseForm.js#L515)

![image](https://user-images.githubusercontent.com/18245929/55950169-dcb91180-5c86-11e9-8d13-df1b9bfd62db.png) ```js form.setFieldsValue({ [`materialList[${key}].unit`]: { key: unitId, label: unitName } }); ``` code like this is not work with `antd-design`。because `setFieldsValue` does not use lodash `set`.

Fixed the problem that return value is an empty string when the form is a radio box ` { getFieldDecorator('isOpen', { valuePropName: 'checked', initialValue: false })(OPEN) } `

https://github.com/react-component/form/blob/e4fa26f4282b23723c565889c4c04ebaf40a1d8f/src/createBaseForm.js#L130 为什么 hasRules 就是 dirty?这是用于什么的?

在getFeildDecorator里面又加了一层hoc,这个hoc会对onChange事件做debounce处理。这样会导致require校验不起作用。查看发现newField.validating是true。是不是在validateFieldsInternal里面有些条件阻止了validate啊? 另外,如果给getFeildDecorator里面的Input做debounce处理,求指一条明路,无限崩溃中....

不希望通过 catch 拿到 errors,因为 ts 无法约束 throw 出来的值的类型,ts 的 Promise 也只有一个泛型参数,对应着 resolve 的值。 https://github.com/react-component/form/blob/9b580f661dcebdb7b50cfac67ff11a1a256f4286/src/createBaseForm.js#L537-L545 希望采取下面的写法 ```js callback = (errors, values) => { if (oldCb) { oldCb(errors, values); } else if...

As tried on https://ant.design/components/form/ page with `Highlight updates` checked in the React extension for chrome, I've noticed that whenever I change one input, all other inputs are updated as well....