You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[QTI] Clicking Save on an open answer or distractor chip leaves it open #6331
❌ 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
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).
changed the title [-]Clicking Save on an open answer or distractor chip leaves it open[/-][+][QTI] Clicking Save on an open answer or distractor chip leaves it open[/+]on Oct 23, 2026
Activity
[-]Clicking Save on an open answer or distractor chip leaves it open[/-][+][QTI] Clicking Save on an open answer or distractor chip leaves it open[/+]