Problem/Motivation

Ensure that "More settings", and other fields are focused on when a validation error occurs.

Otherwise actions are triggered, but there's no visual feedback for why the form submission isn't being carried out.

Steps to reproduce

1. Enable the responsive_preview module.
2. Create a new piece of content, and leave the mandatory "Title" field unticked.
3. Disable fullscreen mode.
4. Switch to the Block tab on the sidebar.
5. Click the Responsive Preview icon in the top Drupal toolbar and click "Phone".

You can also test with a mandatory field within the More Settings section.

Proposed resolution

Add code to ensure the appropriate section is made visible so that it can be focused on.

Remaining tasks

Provide MR.

User interface changes

N/A

Issue fork gutenberg-3574787

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codebymikey created an issue. See original summary.

codebymikey’s picture

Status: Active » Needs review
codebymikey’s picture

Issue summary: View changes

codebymikey’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.