Repository navigation
fix(unregister): clear descendant registrations when removing a parent - #13976
Merged
bluebill1049 merged 1 commit intoNov 1, 2026
Conversation
bluebill1049
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
unregister('parent', { keepValue: true })removes a nested input's field data, but only deletes the literal parent name from the registration sets. Ifparent.childwas disabled, its stale disabled entry makes the next submit silently strip the child value thatkeepValueretained.Include mounted descendants when clearing a named registration. Match the dot boundary so unregistering
parentdoes not clearparentOther. Keep no-name unregister on its existing whole-form path.This extends the direct-field contract from #13703 to parent paths. No public API, dependency or workflow changes. No linked issue.
Type of change
Checklist
Validation
Current master
26ba0d3, Node 22.23.4:parent.childand sibling are both submitted. Base and candidate used separately built bundles, not a shared Vite cache.setValueAsyncStrictMode). That exact test also fails 3/3 with the unchanged implementation. This is not an all-green browser-suite claim. Earlier unsharded attempts timed out; a four-worker attempt had additional timeouts, so the complete two-worker runs are reported here.Prepared with AI assistance. Local tests do not claim maintainer approval or merge.