States API visible stops others states

Created on 24 October 2023, about 1 year ago

Problem/Motivation

Discovered during πŸ› After enabling Require Summary on a field can't save the field Needs review

Steps to reproduce

When using

      '#states' => [
        'unchecked' => [
          ':input[name="settings[display_summary]"]' => ['checked' => FALSE],
        ],
        'visible' => [
          ':input[name="settings[display_summary]"]' => ['checked' => TRUE],
        ],

The checkbox appears and disappears fine but is never unchecked.

Proposed resolution

All states should run but solution is TBD

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 3 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Comments & Activities

Production build 0.71.5 2024