[QTI] Clicking Save on an open answer or distractor chip leaves it open
Les mainteneurs répondent en général sous 1 jour
@rtibblesbot y travaille déjà.
Depuis le 26/10/2026.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- javascript
- Domaine
- frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
❌ 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.jscounts 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 inEditableChipList/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
- Open an exercise's Questions tab and Edit a Match question that has at least one answer.
- Open a row's answer chip, change its text, and click Save.
- The chip stays open in edit mode.
- Repeat with an existing chip under Distractors (optional).
Context
- Studio
unstableat 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.valueTypeError 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.
- Langage dominant
- Python
- Étoiles
- 212
- Forks
- 314
- Merge moyen
- 3 j 4 h
- PR mergées (30 j)
- 57
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateOuverteDEV: frontend P3 - low
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
learningequality/studio#5868 ·
Les mainteneurs répondent en général sous 1 jour
-
TAG: tech update / debt
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
learningequality/studio#2245 ·
Les mainteneurs répondent en général sous 1 jour
-
Remove slideshow supportOuverteDEV: backend
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
learningequality/studio#6353 · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
learningequality/studio#6352 ·
Les mainteneurs répondent en général sous 1 jour
-
DEV: backend DEV: frontend
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
learningequality/studio#6351 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de learningequality/studio
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
btclib-org/btclib-node#2132 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
freelawproject/juriscraper#2367 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
infra tech-debt
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
docs(k8s-api-proxy): name the service-account-token Secret path in the read-write mode commentOuverteneeds-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
gke-labs/kube-agents#4190 ·
Les mainteneurs répondent en général sous 1 jour