[QTI] Clicking Save on an open answer or distractor chip leaves it open
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
❌ 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.
- 主要语言
- Python
- 星标
- 212
- 派生
- 314
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 59
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/studio 的其他 Issue
-
DEV: frontend P3 - low
难度 2/5 1-3 小时 新手友好度 74/100
learningequality/studio#5868 ·
维护者通常 1 天内回复
-
TAG: tech update / debt
难度 2/5 1-3 小时 新手友好度 62/100
learningequality/studio#2245 ·
维护者通常 1 天内回复
-
Turn on the KDS theming lint rules and move theme values out of inline styles可能已有人在做 @LianaHarris360 于 3 天前认领。 未关闭DEV: frontend P1 - important
learningequality/studio#6329 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Upgrade kolibri-format to 3.0.1 and migrate ESLint to flat config可能已有人在做 @LianaHarris360 于 3 天前认领。 未关闭dependencies DEV: frontend P1 - important
learningequality/studio#6328 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug DEV: frontend P0 - critical
难度 4/5 3-5 天 新手友好度 25/100
learningequality/studio#6327 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 learningequality/studio 的全部 Issue
相似的 Issue
-
link-rot
难度 1/5 1 小时以内 新手友好度 67/100
-
难度 2/5 1-3 小时 新手友好度 82/100
developmentseed/titiler-cmr#265 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Insecure Brotli version <1.2.1可能已有人在做 @jamescw19 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
stac-utils/stac-fastapi-pgstac#438 · 1 个 reaction ·
-
bug triage
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复