Webform TOC Submission Issue

Created on 28 August 2024, 3 months ago
Updated 4 September 2024, 2 months ago

Problem/Motivation

When I add a web form to a block and embed the block in a paragraph field, and then try to create a table of contents (TOC) using the toc_api function, the form is not submitted.

Steps to reproduce

  1. Create a webform.
  2. Add the webform to a custom block.
  3. Embed the block in a paragraph field.
  4. Use the toc_api function to generate a Table of Contents (TOC) for the content containing the paragraph.
  5. Attempt to submit the webform.
  6. Observe that the webform does not submit.

Proposed resolution

Do not remove the name attribute.
Remove the line
app/drupal/web/modules/contrib/toc_api/src/Toc.php:533

🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024