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

Cerrado
#20,271 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@riasvdv ya está trabajando en esto.

Desde el 3/11/2026.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
PHP
Estrellas
3.6k
Forks
712
Merge medio
13 h 20 min
PR fusionados (30 d)
357

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de craftcms/cms

Todos los issues de craftcms/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.