Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Dependent field conditions

オープン
#13,622 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
php
領域
frontend

調査の方向性

Start by comparing the behavior described here with the earlier fix in #11910 and the regression in #12362. Reproduce the three-field sequence: enable field 1, enter text in field 2, then disable field 1. Done means field 3 also disappears when field 2 is hidden.

索引モデルが issue の本文から書いたものです。

説明

field conditions
Bug description

When a field has a condition based on another conditional field and you update the first field, the third field doesn't take effect.

[field 1, toggle]
[field 2, text, condition: show when field 1 is true]
[field 3, text, condition: show when field 2 is not empty]

enable field 1, you see field 2. field 3 is hidden.
type into field 2, field 3 appears.
disable field 1, field 2 disappears, field 3 remains but should also disappear.

How to reproduce

.

Logs

Environment
Statamic 6 beta 4
Installation

Fresh statamic/statamic site via CLI

Additional details

This was initially solved in #11910, but regressed in #12362 (semi-intentionally). I felt that issue was more important to get out there than this one which is more of an edge case.

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
1日 8時間
マージ済み PR(30日)
100

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。