Skip to content

spec(input-fields): FR10 retargeting keeps each member's shipped handler order - #7346

Merged
cixzhang merged 3 commits into
mainfrom
spec/fr10-handler-order
Oct 15, 2026
Merged

cixzhang merged 3 commits into
mainfrom
spec/fr10-handler-order

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether moving a consumer DOM handler from a field's outer element to its semantic control (family:input-fields FR10) also changes when that handler runs relative to the member's own handler.

Existing authority searched

  • family:input-fields FR10 (current): "a consumer DOM handler composes with the component's own handler through the shared composition helper, component-first unless the API promises cancellation".
  • architecture:public-component-api INV7 (current): consumer handlers use the shared cancellation contract; a consumer cancels built-in behavior only where the API promises it.
  • The owner's bar for the FR10 implementation stack (2026-10-11): no visual or behavioral updates, only API adjustments the codemod can handle.

As written, FR10 and INV7 require component-first cancelling composition, which would change what a consumer handler observes (a DateInput caller onKeyDown no longer seeing Enter; a ComplexSelector onClick no longer able to cancel opening) in a release billed as a rename.

Decision

Retargeting a base prop changes the element a consumer DOM handler reaches, not its order or cancellation behavior: a component keeps the order and cancellation it released and documents any order that differs from component-first composition; component-first composition applies to handlers a component forwards for the first time (family:input-fields DEC-8, decider the owner, 2026-10-11; its reason is that handler order and cancellation are released interaction behavior that architecture:public-component-api INV9 keeps stable). INV7 gains one sentence pointing at it.

Delta

  • docs/families/input-fields.md: FR10's handler paragraph rewritten; DEC-8 with the rejected alternative.
  • docs/architecture/public-component-api.md: INV7 gains the retargeting sentence.

Writing rubric results

  • R1 present tense, no narration: the first version stated the rule against what a member "shipped" or "previously" did and gave DEC-8 a release-bar reason; FR10, DEC-8, and INV7 now state the rule in the present tense, say "component" (FR10 also binds CheckboxList, RadioList, and Slider), and give DEC-8 a system reason (INV9).
  • R2 research is an artifact: pass (none in the record).
  • R3 evidence names facts: pass (no verification cell changed).
  • R4 rejected alternative one line, inside the decision: pass.
  • R5 no pull-request or issue references: pass.
  • R6 answered open questions list no options: pass (none added).

Search terms: composeEventHandlers, chainEventHandlers, component-first, cancellation contract, handler order, across docs/ and packages/core/src/utils. Overlapping work: the FR10 implementation pull requests, which document each member's order in their Changesets and docs.

…r (input-fields DEC-8, INV7)

Moving a base prop to the semantic control changes where a consumer handler
attaches, not when it runs: a member keeps the order and cancellation behavior
it shipped and documents it; component-first composition applies to handlers a
member forwards for the first time.
@vercel

vercel Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 15, 2026 4:27am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 11, 2026
@astracat-bot

astracat-bot Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 15, 2026, 4:51 AM UTC

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

44 of 454 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 754,077
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,188
Chat Full AI Chat probe light 238,081
Chat Full AI Chat probe dark 237,048
Markdown Default probe light 159,625
Markdown Default probe dark 158,986
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
TableRowExpansion Detail Panel neutral dark 5,150
TableRowExpansion Detail Panel neutral light 4,068

and 24 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request intentionally changes the current FR10 handler rule (component-first composition with no member variation) and INV7, so approval needs a maintainer of family:input-fields and architecture:public-component-api to approve that spec update: the rewritten FR10 paragraph, DEC-8, and the new INV7 sentence, including whether INV7 should bind every component or only point to the input-family decision. Two wording issues also need fixing before approval:

  • The FR10 and DEC-8 text states the rule relative to what a member "shipped" or "previously" did, so once retargeting lands the record no longer says which baseline applies; stating the resulting behavior in the present tense would fix this and the R1 result.
  • The INV7 addition restates the family rule as a global one with an unconditional documentation duty, where linking DEC-8 in the form INV6 uses for FR10 would keep one owner for the rule.

[Automated review]

Comment thread docs/families/input-fields.md Outdated
Comment on lines +220 to +226
props and keep their value signature. A member preserves the handler order and
cancellation behavior it shipped: a consumer DOM handler that previously ran
after the member's own and saw every event keeps doing so, and one that could
cancel the member's behavior still can. Where that order differs from
component-first composition, the member's docs and JSDoc state it. A handler a
member did not previously forward composes component-first through the shared
composition helper. No member and no layout may vary the prop targets.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This states the rule relative to the past ("it shipped", "previously ran after", "did not previously forward"), so once retargeting lands the record no longer says which baseline applies, and previously is one of the R1 scan terms. Consider stating the resulting behavior instead, for example that retargeting changes the element a handler reaches but not its order or cancellation behavior, with each member's docs and JSDoc stating any order that differs from component-first. DEC-8's "the owner's bar for that change" and "a release billed as a rename" have the same issue.

Comment on lines +116 to +118
behavior only where that public API promises cancellation. A component that
moves a handler to another element keeps the order and cancellation behavior
that handler shipped with and documents it (`family:input-fields` DEC-8).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As written this binds every component that moves a handler, requires documentation unconditionally (FR10 requires it only where the order differs from component-first), and reads as a second rule beside the unqualified "use the shared cancellation contract". Consider the linked-exception form INV6 uses for FR10, for example that a family record may keep a moved handler's released order and cancellation behavior as a recorded exception, with family:input-fields DEC-8 as one.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec d7c87bb

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 15, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec owner's approval settles the handler-order direction, but two wording fixes in the rewritten FR10 paragraph and DEC-8 are needed before this lands.

  • State the rule in the present tense rather than relative to what a member “shipped” or “previously” did, and give DEC-8 a system reason instead of the release bar, so the record still reads correctly after the retargeting releases (this also makes the R1 result accurate).
  • Say “component” rather than “member” in that paragraph, since FR10 also binds CheckboxList, RadioList, and Slider.

The corrected head will need the owner's approval again.

[Automated review]

Comment thread docs/families/input-fields.md Outdated
Comment on lines +220 to +226
props and keep their value signature. A member preserves the handler order and
cancellation behavior it shipped: a consumer DOM handler that previously ran
after the member's own and saw every event keeps doing so, and one that could
cancel the member's behavior still can. Where that order differs from
component-first composition, the member's docs and JSDoc state it. A handler a
member did not previously forward composes component-first through the shared
composition helper. No member and no layout may vary the prop targets.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This states the rule against history (“it shipped”, “previously ran after”, “did not previously forward”), so once the retargeting releases are history the record no longer says which baseline applies, and the R1 result reports no narration. It also names “a member” throughout, while FR10 also binds CheckboxList, RadioList, and Slider. A present-tense wording that keeps the same rule: “Retargeting a base prop changes the element a consumer DOM handler reaches, not its order or cancellation behavior: a component keeps the order and cancellation it released and states any order that differs from component-first composition in its docs and JSDoc. A handler a component forwards for the first time composes component-first through the shared composition helper.”

Comment thread docs/families/input-fields.md Outdated
Comment on lines +521 to +522
attached, not when it runs. The owner's bar for that change is no visual or
behavioral update beyond the API adjustments the codemod can handle, so a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“The owner's bar for that change”, and “a release billed as a rename” in the Rejected line, explain the rule by a release decision rather than by the system. A system reason keeps DEC-8 true after the release, for example that a handler's order and cancellation are released interaction behavior that architecture:public-component-api INV9 keeps stable.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 15, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec b68c8bc

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 15, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This revision looks ready to land: the records' owner approved it, and it resolves the two wording points raised earlier by stating the FR10 handler rule and DEC-8 in the present tense and naming every component FR10 binds. No changes are needed in this pull request. Separately, Slider's docs do not yet say that its DOM handlers run after its own and always run, which the new FR10 documentation clause may call for in an implementation follow-up.

[Automated review]

@cixzhang
cixzhang merged commit df75749 into main Oct 15, 2026
56 checks passed
@github-actions
github-actions Bot deleted the spec/fr10-handler-order branch October 15, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — b68c8bcf Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant