Repository navigation
Conversation
🦋 Changeset detectedLatest commit: c63dfb0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Resolve and reset nullable field defaults packages/form-core/src/FormApi.ts, packages/form-core/tests/FieldApi.spec.ts, .changeset/null-field-default-value.md |
Default-status checks and resetField use a field-level null default. The tests verify the default status after value changes, field reset, and form reset. The changeset records the update. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Merge Risk: 
Minimal · previous review e7169
-
No actionable issue remains from this review; the change appears ready to merge after normal checks.
Pre-merge checks | 
4 | 
1
-
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description check
-
Explanation
The description explains the change, motivation, regression test, and linked issue. It does not use the required Changes, Checklist, or Release Impact sections, and it omits the required checklist and release-impact selections.
-
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Summary
isDefaultValueto respect an explicit field-leveldefaultValue: null.resetFieldto fall back to the form-level default only when the field-level default isundefined.Fixes #2427
Summary by CodeRabbit
defaultValue: nullis now respected when checking whether a field has its default value and when resetting a field or form. Fields withundefineddefaults continue to use the form-level default.