Setting default values does work for boolean props

Created on 7 December 2024, 6 months ago

Overview

Given the following prop...

    expanded:
      type: boolean
      title: Expand by default
      description: Note that all accordions are expanded by default in the Experience Builder editor.
      default: false
      default_value: false
      examples: [false]

none of default, default_value, nor examples seem to work for setting a default unchecked state for a boolean prop.

This may be user-error, but even if it is, it was fairly unclear how to accomplish this. I didn't find anything in https://www.drupal.org/docs/develop/theming-drupal/using-single-director... โ†’ related to what examples are, and https://www.drupal.org/docs/develop/theming-drupal/using-single-director... โ†’ indicates that default can be used for this purpose?

Proposed resolution

Make default values work with a mechanism, or educate and document the mechanism in a more prominent place.

User interface changes

None

๐Ÿ› Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States luke.leber Pennsylvania

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