field-form icon indicating copy to clipboard operation
field-form copied to clipboard

⚡️ React Performance First Form Component

Results 183 field-form issues
Sort by recently updated
recently updated
newest added

Bumps [react-dnd](https://github.com/react-dnd/react-dnd) from 8.0.3 to 16.0.1. Release notes Sourced from react-dnd's releases. v16.0.0 Major Packages are now ESM-Only (https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) Node 18 Support v15.1.2 The utility packages @react-dnd/invariant, @react-dnd/shallowequal, and @react-dnd/asap...

dependencies
javascript

Does sharing the same `FormInstance` between multiple `` components considered correct? Example: ```tsx function SampleWithError() { const [form] = Form.useForm(); return ( { console.log(await form.validateFields()); }}> Validate ) } ```...

## Summary by CodeRabbit - **文档** - 新增了关于 useWatch 在嵌套列表场景下用法的示例文档和代码示例。 - **功能优化** - 简化了表单监听回调 WatchCallBack 的参数,移除了 namePathList,仅保留 values 和 allValues。 - 优化了表单内部通知监听的实现,统一回调参数,提升一致性。 - **样式与重构** - 优化了 useWatch 相关变量命名和依赖,提升代码可读性和稳定性。

fix https://github.com/react-component/field-form/issues/753 ``` // Field input props.onChange?.(''); props.onChange?.('A'); ``` ``` // Test expect(form.getFieldValue('input')).toBe('A'); // Result expect(received).toBe(expected) Expected: "A" Received: "" ``` ## Summary by CodeRabbit - **测试** - 新增了针对表单字段多次快速变更值的测试用例,确保多次连续变更后最终值能正确反映在表单状态中。 -...

Field 中多次调用 onChange 更新字段值,如果穿插更新相同值,则不会更新成功。 onChange(null); // 过一会调用 onChange('file.csv'); // 过一会调用 onChange(null); // 过一会调用 onChange('file.csv'); 通过 form 获取字段值,调用了 onChange('file.csv') 但可能获取到的值是 null。 复现链接:[codesandbox](https://codesandbox.io/p/devbox/ji-ben-shi-yong-antd-5-25-4-forked-y8w7nj?file=%2Fdemo.tsx) 与多次调用的间隔时长没关系,即使改为间隔 2s ,也会触发更新失效

fix: https://github.com/ant-design/ant-design/issues/53981 ## Summary by CodeRabbit - **Bug Fixes** - 优化了表单字段在设置值时的“已触碰”状态管理,确保字段值变更后正确标记为已触碰,有助于更准确地显示校验提示。 - **Tests** - 修正了测试用例名称以反映实际功能。 - 新增测试,验证通过设置字段值后字段会被正确标记为已触碰,提升表单交互的准确性。

I have been trying to render the form component using SSR with Remix in a Shopify Polaris template. The issue is that the form doesn't load initially — it only...

getFieldWarning is present but I would like a getFieldsWarning to get all fields with a warning

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.17.0. Release notes Sourced from eslint's releases. v9.17.0 Features eed91d1 feat: add suggestions to no-unused-vars (#18352) (Tanuj Kanti) Bug Fixes 67d683d fix: fix crash when...

dependencies
javascript

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.14 to 19.0.1. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/react&package-manager=npm_and_yarn&previous-version=18.3.14&new-version=19.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...

dependencies
javascript