Closing curly brace printed after form render

Created on 11 April 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

When printing a form either by TWIG ( {{ { '#type': 'webform', '#webform': 'help' } }} ) or node display, a closing curly bracket appears after the form on screen.

Steps to reproduce

Drupal 10, create a form of any complexity, print to screen via TWIG or create a webform node, bracket appears after form on page. It appeared both after a couple of custom forms as well as the default Contact form.

This is my first bug submission, so apologies if I have completed this wrongly. If indeed it is a bug.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Mth

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

Comments & Activities

  • Issue created by @Mth
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    This sound like a problem with your Twig file. Are you able to replicate this issue with the Olivero theme?

  • πŸ‡¬πŸ‡§United Kingdom Mth

    Apologies for the delay!

    Yes, switching to Olivero also replicates the errant bracket as shown in the uploaded image.

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The extra curly bracket is coming from the custom twig template or element.

Production build 0.71.5 2024