Commit 52611a5
* feat: allow `iterateFieldsByAction` to iterate over multiple refs
* fix: `_disableForm` only disables one input when inputs share a name
* test: add unit tests for action iteration over multiple refs
* refactor: invert `abortEarly` param's logic to respect semantic meaning
* refactor: move ref iteration logic to if block
* chore: fix lint errors
* test: rename tests to reflect changes
* Update createFormControl.ts
* Update iterateFieldsByAction.ts
* Update iterateFieldsByAction.test.ts
---------
Co-authored-by: Beier (Bill) <[email protected]>
1 parent 4549afd commit 52611a5
File tree
2 files changed
+10
-7
lines changed- src
- __tests__/logic
- logic
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1105 | 1110 | | |
1106 | | - | |
1107 | | - | |
1108 | 1111 | | |
1109 | 1112 | | |
1110 | 1113 | | |
| |||
0 commit comments