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

Chiusa
#20,271 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@riasvdv ci sta già lavorando.

Dal 3/11/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
PHP
Stelle
3.6k
Fork
712
Merge medio
13h 20m
PR unite (30g)
357

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di craftcms/cms

Tutte le issue di craftcms/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.