You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors appear under the right field automatically: Laravel validation errors (Inertia props, JSON 422 responses), error bags, nested/array keys (items.0.name), and an error summary component. Accessible: aria-invalid, aria-describedby, focus first invalid field on submit.
Done on next-gen (450f778). src/core/errors.ts holds the error logic and src/core/errors.test.tsx has 18 cases. Docs: docs/basic-usage/errors.md.
Decisions:
Array fields: a field named tags[] also shows tags.N errors. Laravel reports tags.* rules per item.
Error bags: the bag is selected with errorBag (Laravel's validateWithBag, Inertia's errorBag). Without a bag, nested bag objects are ignored.
Editing a field: this hides its errors, server and page alike, until new errors arrive.
ErrorSummary: a new component with no Blade v1 equivalent. It is listed in docs/parity.md for the forms agent. The Form renders one unless summary={false}.
Focus: when errors arrive, the first invalid field is focused and revealed. A forms:reveal event opens tabs and accordions. Onu's onu:reveal is dispatched too.
Activity
Automatic error display
n4ff4h commentedon Nov 4, 2026
Done on
next-gen(450f778).src/core/errors.tsholds the error logic andsrc/core/errors.test.tsxhas 18 cases. Docs:docs/basic-usage/errors.md.Decisions:
tags[]also showstags.Nerrors. Laravel reportstags.*rules per item.errorBag(Laravel'svalidateWithBag, Inertia'serrorBag). Without a bag, nested bag objects are ignored.docs/parity.mdfor the forms agent. TheFormrenders one unlesssummary={false}.forms:revealevent opens tabs and accordions. Onu'sonu:revealis dispatched too.