reactjs - 有没有办法明确设置 React Final-Form 脏?
问题描述
我有一个编辑对象的表单,其中正在编辑的对象看起来像
{
description: '',
details: {
array_one: [
{ description: 'this type of thing', count: 1},
{ description: 'that type of thing', count: 42}
],
array_two: []
}
}
我在 Form 中有动态创建的子组件<input type="text">
,它们要么修改数组中的对象,要么将新对象附加到数组中。子组件当前不包含在<Field>
元素中。
我正在寻找一种让表单被视为脏并在其中一个数组或包含的项目的内容被修改时启用提交按钮的方法。
这可以做到吗?
解决方案
推荐阅读
- python - 在我的列表中找到重复项,稍后在代码中使用
- domain-driven-design - DDD:需要获取数据作为其业务规则一部分的域服务的问题
- session - 如何在 WSO2 Identity Server 中查找用户登录注销时间?
- python - 如何遍历只有一条线的树?(python,树遍历)
- python - 如何匹配 pandas 列中的字符串,然后返回它后面的内容?
- node.js - AWS SAM Lambda 应用程序开发 + AWS 开发工具包——无法获得工作示例
- html - 如何删除 WebVTT 生成的字符轮廓?
- google-colaboratory - 从最后一个输出运行 colab notebook,而不是从头开始
- dll - .dll 没有为 Photoshop 下载
- python - 为什么每当我运行此代码时,我的屏幕上都会出现一个白色矩形?