Nested patterns have empty options

Created on 22 July 2025, 12 days ago

Problem/Motivation

Embed a pattern A as a child of an other pattern B, have th effect to have all options value of pattern A empty.

Steps to reproduce

Create a pattern Heading for example:

heading.ui_patterns.yml

heading:
  label: 'Heading'
  settings:
    title_tag:
      type: select
      label: 'Title tag'
      default: h2
      options:
        h1: H1
        h2: H2
        h3: H3
        h4: H4
        h5: H5
        h6: H6
        h7: H7
        span: span
        div: div
  fields:
    title:
      type: text
      label: 'Title'
      description: 'The content.'
      preview: 'I am a title'

pattern-heading.html.twig

<{{ title_tag|default('span') }}> {{ title }} <{{ title_tag|default('span') }}>

I am using ui_patterns_field_group,
When I set H7 in a root pattern, it is well display in tag.
But as a child of an other pattern settings are empty (fields are ok).

🐛 Bug report
Status

Active

Version

1.13

Component

Code

Created by

🇫🇷France Julien Tekrane

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

Comments & Activities

Production build 0.71.5 2024