Skip to content

DataForm: Validation on blur hijacks focus from the natural tab sequence in card layout #76832

@NeosinneR

Description

@NeosinneR

Description

When using a DataForm with the card layout and required field validation, blurring from any field (via mouse click or tab) triggers validation and auto-focuses the first required field that has an error. This hijacks the user's natural tab order (or whichever input they clicked), making navigation unpredictable.

Step-by-step reproduction instructions

  1. Clear the value of the Text field (so it becomes empty/invalid) by updating the story.
  2. Open local storybook (npm run storybook:dev).
  3. Go to the DataForm validation story.
  4. Switch to the card layout.
  5. Click into the second field (e.g., Textarea) with the mouse.
  6. Press Tab to move to the next field.

Screenshots, screen recording, code snippet

Screen.Recording.2026-03-26.at.13.32.16.mov

Environment info

WordPress 6.9.4, Gutenberg nightly, macOS, Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions