Skip to content

fix(DateInput, DateTimeInput): defer nonexistent and out-of-range typed-date errors to commit - #10575

Closed
Geervan wants to merge 1 commit into
meta:mainfrom
Geervan:fix/dateinput-defer-typed-errors
Closed

Geervan wants to merge 1 commit into
meta:mainfrom
Geervan:fix/dateinput-defer-typed-errors

Conversation

@Geervan

@Geervan Geervan commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10367

Summary

Adds the entryErrorBehavior: 'complete' | 'blur-or-enter' prop to DateInput and DateTimeInput (defaulting to 'complete'), along with defaultEntryErrorBehavior on FormLayout and an exported EntryErrorBehavior type.

  • 'complete' (default): Preserves existing behavior where an out-of-range date or one the calendar does not have shows its error status, live-region announcement, and aria-invalid as soon as the date is complete.
  • 'blur-or-enter': Defers the error status, live-region announcement, and aria-invalid until commit (Enter or blur). Unreadable text continues to reject immediately.
  • FormLayout propagation: Descendant fields inherit defaultEntryErrorBehavior via FormLayoutContext, while a field's own entryErrorBehavior prop takes precedence.

Changes

  • EntryErrorBehavior type & FormLayoutContext:
    • Exported EntryErrorBehavior = 'complete' | 'blur-or-enter'.
    • Added defaultEntryErrorBehavior to FormLayoutProps, FormLayout, and FormLayoutContext.
    • Added useResolvedEntryErrorBehavior hook to resolve field-level props against the form-wide default.
  • DateInput & DateTimeInput:
    • Added entryErrorBehavior?: EntryErrorBehavior prop.
    • Connected resolution to useTypedDateField.
  • useTypedDate.ts:
    • Updated typedDateError to respect entryErrorBehavior: under 'complete', errors show when isComplete || isCommitted; under 'blur-or-enter', errors defer until isCommitted.
  • Tests:
    • Added unit tests in FormLayout.test.tsx verifying defaultEntryErrorBehavior context propagation and nested layout shadowing.
    • Added tests in DateInput.test.tsx verifying:
      • Default 'complete' shows errors immediately once complete.
      • entryErrorBehavior="blur-or-enter" defers errors until blur or Enter.
      • Inheritance from <FormLayout defaultEntryErrorBehavior="blur-or-enter">.
      • Field-level prop override over FormLayout.
    • Preserved existing calendar test suites in DateInput.calendar.test.tsx and DateTimeInput.calendar.test.tsx.
  • Docs & Specs:
    • Updated DateInput.spec.md with entry error behavior concept row and revised AR3 validation timing details.
    • Added prop documentation in DateInput.doc.mjs, DateTimeInput.doc.mjs, and FormLayout.doc.mjs.
  • Changeset:
    • Updated .changeset/dateinput-defer-typed-error.md (minor bump for additive API).

@vercel

vercel Bot commented Nov 7, 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 Nov 12, 2026 2:36pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 7, 2026
@github-actions github-actions Bot added community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge labels Nov 7, 2026
@astracat-bot

astracat-bot Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 12, 2026, 2:55 PM UTC

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

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 653e753

This branch's preview address cannot be known in advance; open it from Vercel's comment.

Current run: The current CI run concluded failure. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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.

Thanks for the clear reproduction and the tests, which fail before this change and pass after it. Approval waits on an engineering owner deciding when these errors should appear, and one wording fix is needed either way.

  • Owner decision needed: the DateInput spec (FR20, AR3, ORD3) says a typed date the calendar does not have, or one out of range, is shown, announced and kept on Enter or blur, but not when the error first appears, so an engineering owner needs to settle whether these errors wait for Enter or blur and record it by commenting /approve-spec <full head SHA> (the author may do this if they are an engineering owner), ideally also stating the timing in FR20, which this pull request leaves unchanged.
  • Changeset wording (blocking): the changeset and description say the new timing matches unreadable text, but unreadable text such as abc still sets aria-invalid and announces "Invalid date" while typing, so please name only incomplete text or drop that sentence.

Two smaller suggestions are inline: a test for the out-of-range half, and the typedDateError comment that still describes the old rule. CI has not run on this head yet, because a maintainer needs to add the ci:run label first.

[Automated review]

@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.

Thanks for the quick follow-up. The changeset wording, the JSDoc and the out-of-range test are all fixed. Approval still waits on an engineering owner deciding whether these two errors should wait for Enter or blur, because this head writes that timing into the current DateInput record's FR20 and AR3. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request.

Needed whatever the owner decides:

  • The description's first paragraph still says the timing matches unreadable text, but unreadable text still sets aria-invalid and announces "Invalid date" while typing (useTypedDate.ts:92-97), so name only incomplete text there, as the changeset now does.

Also worth doing:

  • Rebase onto main before an owner approves: the branch conflicts in DateInput.spec.md, where main added FR23, and resolving that conflict changes the approved text.
  • Miss: the description's 31/12/2026 example never flagged early in en-US, which reads that text only on commit; 02/31/2026 shows the problem in any locale.

[Automated review]

@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.

Thanks for the rebase and the follow-ups: the wording, the JSDoc and the out-of-range test are all fixed, and the three new tests fail before this change and pass after it.

Approval still waits on an engineering owner deciding whether a typed date the calendar does not have, or one outside min, max or dateConstraints, should show its error, announce it and set aria-invalid only on Enter or blur. The current DateInput spec does not say when these errors first appear, and this pull request writes that timing into its FR20, AR3 and selected-date row. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.

One change is needed either way:

  • docs/specs/components/DateInput/DateInput.spec.md is not Prettier-formatted, because FR20 is now the longest cell of the Behavioral and layout contract table and that table's other rows were not re-padded, so the required lint check will fail; run pnpm exec prettier --write docs/specs/components/DateInput/DateInput.spec.md and push before an owner approves, since it changes the head.

Also worth a look: the description's 31/12/2026 example does not flag mid-entry in en-US on main, only in day-first locales, while 02/31/2026 shows the problem. CI has not run on this head yet; a maintainer adds the ci:run label so it runs.

[Automated review]

@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.

DateInput.spec.md now passes Prettier, and no other change is required. Approval waits on an engineering owner deciding whether a typed date the calendar does not have, or one outside min, max or dateConstraints, should show its error, announce it and set aria-invalid only on Enter or blur, which this pull request writes into the current DateInput spec's FR20, AR3 and selected-date row. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. CI has not run on this head yet; a maintainer adds the ci:run label so it runs.

[Automated review]

@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 10, 2026
@cixzhang
cixzhang marked this pull request as draft November 10, 2026 04:39
@cixzhang
cixzhang marked this pull request as ready for review November 10, 2026 04:40
@cixzhang cixzhang removed the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 10, 2026
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

Deployment failed for project astryx with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@Geervan
Geervan force-pushed the fix/dateinput-defer-typed-errors branch from a5da837 to d0f708a Compare November 12, 2026 10:41
@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026
@Geervan

Geervan commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated this PR based on the reviews and direction provided on the issue #10367 by @nynexman4464

@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.

Thanks for reworking this around the entryErrorBehavior option. Changes are needed before approval: the option, its values, its default and FormLayout's form default all match the current records, but 'blur-or-enter' only holds back the nonexistent and out-of-range typed-date errors, while component:DateInput FR24/AR3 and component:DateTimeInput FR15 require every rejection signal to wait for Enter or blur.

Blocking

  • Unreadable text (abc) still sets aria-invalid and announces "Invalid date" on each keystroke under 'blur-or-enter', because typedDateError returns unreadable without checking the behavior (useTypedDate.ts:144-149); FR24 says it is announced once at the commit that reverts it.
  • handleChange builds its onEntryErrorChange report without the behavior (useTypedDate.ts:634-640), so under 'blur-or-enter' a completed 02/31/2026 is reported mid-typing and then retracted with null, which FR24 and AR3 forbid.
  • Any edit after a revealed rejection clears it (useTypedDate.ts:630), but FR24 keeps it, without a new announcement, while the text stays rejected.
  • DateInput's native surface (the default on touch devices) ignores the option and refuses an out-of-range date at once (NativeDateField.tsx:467-472), but FR24 says a native rejection waits for the next Enter or blur.
  • DateTimeInput's time segment still marks and announces "Invalid time" on each keystroke (DateTimeInput.tsx:883-892, :2013-2031), against FR15.
  • The prop reaches the DOM on DateInput's native and sheet surfaces and DateTimeInput's sheet (DateInput.tsx:1186-1190, DateTimeInput.tsx:2173-2175), causing React's unknown-prop warning and a stray attribute, so strip it there beside onEntryErrorChange.
  • hooks/useResolvedEntryErrorBehavior.ts is a new shared internal module that no current record names, so either resolve the behavior inside useTypedDateField, which both fields already call, or get an owner decision that names it.
  • The FormLayout rows (defaultEntryErrorBehavior and the context member) are outside the title's scope (DateInput, DateTimeInput), so add FormLayout to the scope (title or a ## Scope Components: line), as component:FormLayout FR4/FR7 already decide them.
  • The EntryErrorBehavior type is outside the same scope, so add it to that Components: line.
  • FormLayout's doc and JSDoc say TimeInput and NumberInput follow the form default (FormLayout.doc.mjs:38, FormLayout.tsx:121-122), but neither takes the option yet, so list only DateInput and DateTimeInput.
  • The title says errors are deferred to commit, but by default nothing changes, so retitle it, for example feat(DateInput, DateTimeInput, FormLayout): add entryErrorBehavior to hold typed-date errors until Enter or blur.
  • The description says DateInput.spec.md was updated and the Changeset is a minor bump, but no record changes and the Changeset is patch (correct under 0.x), so update the description.

Tests for each path above under 'blur-or-enter' (unreadable text, an onEntryErrorChange spy, an edit after blur, the native field, DateTimeInput) would cover what FR24 and FR15 list as missing suites. CI has not run on this head yet; a maintainer adds the ci:run label so it runs.

Claims and files checked
  • Claim: both fields gain an optional entryErrorBehavior defaulting to 'complete', FormLayout a form default, and the type is exported: verified (DateInput.tsx:550, DateTimeInput.tsx:629, FormLayout.tsx:131, FormLayoutContext.ts:27).
  • Claim: the default keeps today's timing: verified (useTypedDate.ts:150-157, default tests).
  • Claim: 'blur-or-enter' holds the error status, announcement and aria-invalid until Enter or blur: partly false (true for the visible nonexistent and out-of-range signals; not for the caller report, native values or the time segment).
  • Claim: unreadable text still rejects at once: verified (useTypedDate.ts:144-149), and it conflicts with FR24.
  • Claim: fields inherit the FormLayout default and their own prop wins: verified (useResolvedEntryErrorBehavior.ts:29-34, DateInput and FormLayout tests).
  • Claim: a resolution hook was added and wired into the typed-date hook: verified.
  • Claim: FormLayout tests cover propagation and nested shadowing: verified.
  • Claim: DateInput tests cover default, deferral, inheritance and override: verified.
  • Claim: calendar test suites are preserved: verified (unchanged).
  • Claim: the DateInput spec gained a concept row and AR3 timing: false (no record changes).
  • Claim: three .doc.mjs files document the props: verified, but FormLayout's names two members that do not take the option.
  • Claim: the Changeset is a minor bump: false (patch, the required level under 0.x).
  • Changeset: the feature entry for the three components: verified.
  • Changeset: nonexistent and out-of-range typed dates hold their signals until commit under 'blur-or-enter': verified without onEntryErrorChange; false with it.
  • Changeset: the default matches current behavior: verified.
  • .changeset/dateinput-defer-typed-error.md: patch level clear; one sentence holds only once the report fix lands.
  • packages/core/src/DateInput/DateInput.doc.mjs: clear once the behavior matches FR24.
  • packages/core/src/DateInput/DateInput.test.tsx: clear; paths above untested.
  • packages/core/src/DateInput/DateInput.tsx: finding (DOM leak, native surface).
  • packages/core/src/DateInput/index.ts: clear.
  • packages/core/src/DateInput/useTypedDate.ts: findings (unreadable, report, edit).
  • packages/core/src/DateTimeInput/DateTimeInput.doc.mjs: clear once FR15 holds.
  • packages/core/src/DateTimeInput/DateTimeInput.tsx: findings (time segment, sheet leak).
  • packages/core/src/FormLayout/FormLayout.doc.mjs: finding (TimeInput, NumberInput).
  • packages/core/src/FormLayout/FormLayout.test.tsx: clear.
  • packages/core/src/FormLayout/FormLayout.tsx: finding (JSDoc names two members); context wiring clear.
  • packages/core/src/FormLayout/FormLayoutContext.ts: clear.
  • packages/core/src/FormLayout/index.ts: clear.
  • packages/core/src/hooks/useResolvedEntryErrorBehavior.ts: finding (unnamed shared module).

Automated review (maintainer link)

… hold typed-date errors until Enter or blur

- Add entryErrorBehavior ('complete' | 'blur-or-enter') to DateInput and DateTimeInput

- Add defaultEntryErrorBehavior to FormLayout and FormLayoutContext

- Under 'blur-or-enter', defer error display, aria-invalid, announcements, and caller reporting until Enter or blur

- Hold rejection feedback across pointer, native, and sheet surfaces

@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.

Thanks for reworking this into the entryErrorBehavior option the issue asked for: the props, values, default and FormLayout precedence match the current records, and the earlier points on unreadable text, the mid-typing report, DateInput's native field, the typed time segment and the DOM leak are fixed. Changes are still needed before approval:

  • Enter in DateTimeInput's time field now calls preventDefault whenever typed time is pending (DateTimeInput.tsx:1682), so a form no longer submits for any caller, while component:DateTimeInput FR16 says Enter there commits and is not prevented beyond that.
  • Miss: DateTimeInput's native date segment never receives the behavior (DateTimeInput.tsx:1842-1864) and still flags a refused date at once, while FR15 makes it wait for Enter or blur as component:DateInput FR24 does.
  • Under 'blur-or-enter', each edit after a revealed rejection reports null and then the rejection again to onEntryErrorChange and switches the shown message to the current text's (useTypedDate.ts:667-676, :443-464), so it is announced again, while FR24 keeps it unannounced until the next Enter or blur.
  • Under 'blur-or-enter', committed unreadable text is announced in the field's own words and never reported to onEntryErrorChange (useTypedDate.ts:707-713), while FR24 reports a rejection when it reveals it and AR3 announces the caller's error message.
  • Committing unreadable text now skips the typing-session reset (useTypedDate.ts:707-713), so, whatever the behavior, a date the field reported before and the caller did not take never reaches onChange again when it is retyped; keep setLastFired({date: undefined, epoch: firedEpoch}) in that branch.
  • FormLayoutProps.defaultEntryErrorBehavior and the FormLayoutContext member (FormLayout) are outside the title's scope (DateInput, DateTimeInput), so name FormLayout in the title or a ## Scope Components: line.
  • The EntryErrorBehavior type is outside the same scope, so name it in that Components: line.
  • The title says errors are deferred to commit, but nothing changes by default, so retitle it, for example feat(DateInput, DateTimeInput, FormLayout): add entryErrorBehavior to hold typed-date errors until Enter or blur.
  • The description says the DateInput spec changed, the Changeset is a minor bump, a useResolvedEntryErrorBehavior hook was added, unreadable text still rejects at once and 'complete' preserves all existing behavior, and none of these holds at this head.

A test for each case above (Enter in a form, the native date segment, an onEntryErrorChange spy across edits, retyping after unreadable text) closes the missing FR15, FR16 and FR24 cases. CI has not run on this head yet; a maintainer adds the ci:run label so it runs.

Claims and files checked
  • Claim: both fields gain an optional entryErrorBehavior defaulting to 'complete', FormLayout a form default, and the type is exported: verified (DateInput.tsx:549, DateTimeInput.tsx:632, FormLayout.tsx:131, FormLayoutContext.ts:27).
  • Claim: 'complete' keeps today's timing for nonexistent and out-of-range dates: verified (useTypedDate.ts:162-174, tests at DateInput.test.tsx:470, :480).
  • Claim: 'complete' preserves existing behavior: false (Enter in the time field, retyped dates).
  • Claim: 'blur-or-enter' holds the error, announcement and aria-invalid until Enter or blur: partly false (native date segment of DateTimeInput, edits after a reveal).
  • Claim: unreadable text still rejects at once under 'blur-or-enter': false (useTypedDate.ts:154-160, test at DateInput.test.tsx:589).
  • Claim: fields inherit the FormLayout default and their own prop wins: verified (useTypedDate.ts:420-422, tests at DateInput.test.tsx:551, :570).
  • Claim: a resolution hook was added: false (no such file at this head).
  • Claim: the resolution is wired into the typed-date hook: verified.
  • Claim: the typed-date gate follows the behavior as described: verified (useTypedDate.ts:145-176).
  • Claim: FormLayout tests cover propagation and nested shadowing: verified.
  • Claim: DateInput tests cover default, deferral, inheritance and override: verified.
  • Claim: the calendar test suites are preserved: verified (unchanged).
  • Claim: the DateInput spec gained a concept row and new AR3 timing: false (no record changes).
  • Claim: the three .doc.mjs files document the props: verified.
  • Claim: the Changeset is a minor bump: false (patch).
  • Claim: it fixes the linked issue: verified for the opt-in the issue asks for.
  • Changeset: adds the option, the type and the FormLayout default: verified.
  • Changeset: nonexistent and out-of-range typed dates hold their signals until Enter or blur under 'blur-or-enter': verified for the first reveal (tests at DateInput.test.tsx:490, :512, :534); an edit after the reveal re-announces.
  • Changeset: the default keeps current timing for complete dates: verified.
  • .changeset/dateinput-defer-typed-error.md: clear.
  • packages/core/src/DateInput/DateInput.doc.mjs: clear.
  • packages/core/src/DateInput/DateInput.test.tsx: clear; edits with a report spy and retyping after unreadable text untested.
  • packages/core/src/DateInput/DateInput.tsx: clear.
  • packages/core/src/DateInput/NativeDateField.test.tsx: clear.
  • packages/core/src/DateInput/NativeDateField.tsx: clear.
  • packages/core/src/DateInput/index.ts: clear.
  • packages/core/src/DateInput/useTypedDate.ts: findings (edits after a reveal, unreadable report, retyped date, JSDoc).
  • packages/core/src/DateTimeInput/DateTimeInput.doc.mjs: clear once the native date segment holds its refusal.
  • packages/core/src/DateTimeInput/DateTimeInput.test.tsx: clear; Enter in a form and the native date segment untested.
  • packages/core/src/DateTimeInput/DateTimeInput.tsx: findings (Enter blocks submission, native date segment).
  • packages/core/src/DateTimeInput/NativeTimeSegment.tsx: clear.
  • packages/core/src/FormLayout/FormLayout.doc.mjs: clear.
  • packages/core/src/FormLayout/FormLayout.test.tsx: clear.
  • packages/core/src/FormLayout/FormLayout.tsx: finding (outside the title's scope).
  • packages/core/src/FormLayout/FormLayoutContext.ts: finding (type outside the title's scope).
  • packages/core/src/FormLayout/index.ts: clear.

Automated review (maintainer link)


if (e.key === 'Enter') {
if (timePendingInput !== null) {
e.preventDefault();

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.

Blocking: this preventDefault runs whenever typed time is pending and the list is closed, under 'complete' too, so Enter in the time field no longer submits a surrounding form. component:DateTimeInput FR16: Enter in the time segment "commits its typed text and is not prevented beyond that, so a form submits". Keep the commit and drop e.preventDefault() here; a form test with a valid and a rejected draft (onSubmit called once each) pins it.

isBusy={isBusy}
statusType={status?.type}
ariaDescribedBy={ariaDescribedBy}
entryErrorBehavior={resolvedEntryErrorBehavior}

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.

Blocking (miss): the native time segment gets the behavior here, but NativeDateSegment above (lines 1842-1864) gets none and sets its refusal at once (NativeDateSegment.tsx:175-178), so on touch a refused date marks aria-invalid and announces "Invalid date" under 'blur-or-enter' before Enter or blur. FR15 makes the date segment follow component:DateInput FR24 ("a native value's rejection waits for the next Enter or blur"). Pass entryErrorBehavior={resolvedEntryErrorBehavior} and hold the refusal as NativeDateField does.

text,
options.min,
options.max,
resolvedBehavior,

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.

Blocking: while a revealed rejection stands (isRejectionCommitted stays true at line 662), this call passes false, so under 'blur-or-enter' every edit reports null and the effect at line 568 reports the rejection again; the field's status hides for one render and returns. The shown message also follows the current text (lines 443-464): 02/31/2026 → 02/31/202 turns "Enter a real date" into "Invalid date". FR24: an edit that leaves the text rejected "keeps it without a new announcement until the next Enter or blur", and null is reported only when the rejection clears. Hold the revealed kind, message and report until the text is accepted or empty, or the next commit.

Comment on lines +707 to +713
if (result.kind === 'unreadable') {
if (resolvedBehavior === 'blur-or-enter') {
setRevertedAlert(typedDate.errorMessage(result));
}
reset();
return;
}

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.

Blocking, two issues: (1) under 'blur-or-enter', reset() reports only null, so onEntryErrorChange never receives {kind: 'unreadable'}, and revertedAlert (line 536) announces the field's message even when the caller set an error message; FR24 reports a rejection when it reveals it and AR3 announces the caller's message. (2) Under both values, this early return skips setLastFired({date: undefined, epoch: firedEpoch}) (line 738), which the base runs for unreadable text, so a date the field already reported and the caller did not take never reaches onChange when it is retyped after abc and blur (ORD3). Report the unreadable rejection at this commit and keep the session reset here.

}

/** The rejection a result shows: errors of complete text, or of committed text. */
/** The rejection of a result according to entryErrorBehavior. */

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.

Non-blocking (INV29): this JSDoc restates the parameter name. Suggested:

/** The rejection a result shows. Under 'blur-or-enter', only committed text shows one. */

@Geervan

Geervan commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

closing this in favour of #11485

@Geervan Geervan closed this Nov 14, 2026

This branch was successfully deployed

1 active deployment
Preview — 653e7534 Deployed Nov 12, 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. community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DateInput, DateTimeInput: a nonexistent or out-of-range date errors mid-typing, before Enter or blur

2 participants