[QTI] Clicking Save on an open answer or distractor chip leaves it open
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
- Domínio
- frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
❌ 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.
- Linguagem predominante
- Python
- Estrelas
- 212
- Forks
- 314
- Merge médio
- 3d 6h
- PRs com merge (30d)
- 56
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateAbertaDEV: frontend P3 - low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
learningequality/studio#5868 ·
Mantenedores costumam responder em até 1 dia
-
TAG: tech update / debt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
learningequality/studio#2245 ·
Mantenedores costumam responder em até 1 dia
-
Remove slideshow supportAbertaDEV: backend
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
learningequality/studio#6353 · 2 reações ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
learningequality/studio#6352 ·
Mantenedores costumam responder em até 1 dia
-
DEV: backend DEV: frontend
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
learningequality/studio#6351 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de learningequality/studio
Issues semelhantes
-
enhancement help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Git-Hospital/githealthcheck#61 ·
Mantenedores costumam responder em até 1 dia
-
changelog investigate
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
ramnes/notion-sdk-py#433 ·
-
Partial method descriptors raise on class accessTalvez já em andamento @Gambit-Checkmate assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 19 dias
-
docs pkg:core
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
pydantic/pydantic-ai#11929 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
intake/intake-esm#789 ·