SDCDemoForm does not reflect when slots are required

Created on 12 September 2024, 3 months ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

The demo form presented for a component does not reflect when defined slots are required for the component.

Steps to reproduce

    Install Drupal Core 10.3
    Select the Olivero theme as the default theme (it contains a component)
    Install and enable sdc_components version 1.1+
    Navigate to the Styleguide (/styleguide/explorer)
    Select the "Teaser" component from the sidebar to see the component form.

Expected Behavior:

  • The "content" slot, which is configured as a required field in the teaser.components.yml for the Olivero theme's "teaser" component would show as a required field on the form, and the form would fail to submit if no value was provided.

Actual behavior:

  • The form can be submitted without providing a value for the "content" slot.
πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lhridley

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