Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[QTI] Clicking Save on an open answer or distractor chip leaves it open

Abierto
#6,331 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

Start with contentcuration/contentcuration/frontend/shared/views/QTIEditor/components/EditableChipList/index.vue and the capture-phase handler in contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/composables/useClickOutside.js. Reproduce the Save behavior in the QTI Match question editor, then make existing answer and distractor chips close after Save while preserving the edit and focus. Add or update the relevant EditableChipList test so clicking Save fails before the fix, and verify that the open.value TypeError is gone. Note that the issue currently says it is not open for contribution, so confirm permission before starting.

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

Descripción

bug DEV: frontend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Observed behavior

  • In the QTI question editor, clicking Save on an existing chip in a Match row's answers or in Distractors (optional) leaves the chip's editor open; it does not close.
  • Pressing Enter on the focused Save does the same.
  • The edit is kept. Clicking anywhere outside the chip closes it.
  • Saving a new chip (after Add distractor) closes as expected.
  • The capture-phase click listener in useClickOutside.js counts Save as outside the editor and closes it before the button's own handler runs. Save then unmounts, and the click reopens the chip through the chip region's handler in EditableChipList/index.vue.

Errors and logs

Logged on some clicks:

TypeError: Cannot destructure property 'index' of 'open.value' as it is null

(onSave in EditableChipList/index.vue)

Steps to reproduce

  1. Open an exercise's Questions tab and Edit a Match question that has at least one answer.
  2. Open a row's answer chip, change its text, and click Save.
  3. The chip stays open in edit mode.
  4. Repeat with an existing chip under Distractors (optional).

Context

  • Studio unstable at 4238bc44a, Chromium.

Acceptance Criteria

  • Clicking Save on an open existing answer chip closes it, keeps the edit, and moves focus to that chip.
  • The same holds for an existing distractor chip.
  • Pressing Enter on a focused Save behaves the same as clicking it.
  • The open.value TypeError no longer appears in the console.
  • A test that clicks Save on an existing open chip fails without the fix.

AI usage

Claude Code found this during manual QA of the shared-answer pool change, traced the cause, and drafted this issue.

Lenguaje dominante
Python
Estrellas
213
Forks
314
Merge medio
2 d 19 h
PR fusionados (30 d)
59

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 learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.