States API visible stops others states

Created on 24 October 2023, 8 months 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 1 minute 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.69.0 2024