[6.x]: Fields on a revision are shown as disabled instead of read-only

クローズ
#20,271 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@riasvdv がすでに取り組んでいます。

2026年11月3日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php

調査の方向性

Start from the page payload that sets "mode": "readOnly" for a revision, then find where the field and input rendering turns that mode into a disabled attribute instead of readonly. The issue names no files, so trace the mode from the revisions panel to the field templates. Done means revision fields render with readonly and stay focusable, and the revision view matches the Field read-only story.

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

説明

bug repo:cms
What happened?

Steps to reproduce

  1. Open an entry that has a few revisions.
  2. Open an older revision from the Revisions panel.

Expected behavior

The fields are shown read-only, like the read-only Field story in the UI Storybook (and like revisions in Craft 5): the values are easy to read, and can be focused, scrolled and selected.

Actual behavior

Every field is disabled. The values are dimmed (the title text renders at about 2.1:1 contrast against the white background), they can't be focused with the keyboard, and screen readers announce them as unavailable.

The page payload marks the controls as read-only ("mode": "readOnly"), but the rendered fields and inputs have disabled set and not readonly.

Craft CMS version

6.x-dev (craftcms/cms at 395aae2)

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions
主要言語
PHP
スター
3.6k
フォーク
712
平均マージ
13時間 20分
マージ済み PR(30日)
357

環境構築

はじめの一歩

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

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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