An invalid form control with name=field_paragraph

Created on 3 May 2025, 18 days ago

Problem/Motivation

When trying to edit a Paragraph in the material type
and save the node, after clicking the Save button nothing happens, an error appears in the browser console:

An invalid form control with name='field_paragraph[0][subform][field_first_column][0][subform][field_text][0][format]' is not focusable.
​…​

Steps to reproduce

Edit the Paragraph (the "Edit" button) and change the link in the First column, then click the "Save" button.
I checked all the fields for Paragraphs, all the checkboxes for "Required field" are unchecked.

The error appeared recently, most likely after some Drupal update, about a month ago there was no such problem.

🐛 Bug report
Status

Active

Version

10.4

Component

javascript

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kovalevm
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Hi
    Can you help us understand your setup here as the material type and paragraphs aren't part of Drupal core
    Can you confirm this happens with a core theme?
    Can you provide steps to reproduce starting from install Drupal

    Thanks!

  • 🇮🇳India himani_219

    I did some further testing and confirmed that this issue occurs only when using a custom theme. Switching to a core theme like Claro or Olivero eliminates the error, which suggests the problem might stem from hidden or visually collapsed required fields that become non-focusable.

    The browser's native constraint validation throws the "invalid form control not focusable" error when a required field (like a select or text area) is hidden via CSS or not properly rendered in the DOM. One possible solution is to ensure that required fields remain focusable—either by avoiding hidden required inputs or by setting required dynamically via JS only when the field is visible.

  • I am removing excess tags according to the tag guidelines .

Production build 0.71.5 2024