[QTI] Clicking Save on an open answer or distractor chip leaves it open
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
❌ 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.
- Vorherrschende Sprache
- Python
- Sterne
- 212
- Forks
- 314
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 59
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateOffenDEV: frontend P3 - low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
learningequality/studio#5868 ·
Maintainer antworten meist innerhalb von 1 Tag
-
TAG: tech update / debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
learningequality/studio#2245 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Turn on the KDS theming lint rules and move theme values out of inline stylesEvtl. vergeben @LianaHarris360 hat das vor 3 Tagen übernommen. OffenDEV: frontend P1 - important
learningequality/studio#6329 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Upgrade kolibri-format to 3.0.1 and migrate ESLint to flat configEvtl. vergeben @LianaHarris360 hat das vor 3 Tagen übernommen. Offendependencies DEV: frontend P1 - important
learningequality/studio#6328 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug DEV: frontend P0 - critical
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
learningequality/studio#6327 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in learningequality/studio
Ähnliche Issues
-
link-rot
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 67/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
developmentseed/titiler-cmr#265 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Insecure Brotli version <1.2.1Evtl. vergeben @jamescw19 hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
stac-utils/stac-fastapi-pgstac#438 · 1 Reaktion ·
-
bug triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag