[QTI] Clicking Save on an open answer or distractor chip leaves it open
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
❌ 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.
- Ngôn ngữ chính
- Python
- Star
- 213
- Fork
- 314
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 59
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của learningequality/studio
-
Set unpublishable: true on PublishedChange by construction to simplify handleMaxRevs predicateĐang mởDEV: frontend P3 - low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
learningequality/studio#5868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TAG: tech update / debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
learningequality/studio#2245 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Turn on the KDS theming lint rules and move theme values out of inline stylesCó thể đã có người làm @LianaHarris360 đã nhận 3 ngày trước. Đang mởDEV: frontend P1 - important
learningequality/studio#6329 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade kolibri-format to 3.0.1 and migrate ESLint to flat configCó thể đã có người làm @LianaHarris360 đã nhận 3 ngày trước. Đang mởdependencies DEV: frontend P1 - important
learningequality/studio#6328 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug DEV: frontend P0 - critical
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
learningequality/studio#6327 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của learningequality/studio
Issue tương tự
-
request-theme
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
LizardByte/ThemerrDB#9575 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Author Page: noshin-nawalĐang mởauthor-page correction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
acl-org/acl-anthology#10599 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zilliztech/memsearch#818 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FAQ] Commit ID for ProjectsCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởfaq-proposal
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
DataTalksClub/faq#503 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
README.zh-CN/ja/es still hard-code 501 test counts after README.md went count-freeCó thể đã có người làm @Aaqibhafeezkhan đã nhận hôm nay. Đang mởbeginner documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
BistaDinesh03/critique#164 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày