Skip to content

Numeric input answer is not saved and question is marked as incomplete after closing the exercise editor #4910

@radinamatic

Description

@radinamatic

Observed behavior

Originally reported by the user on community forum, and able to replicate:

num-input.mp4

Issue can be circumvented by adding another answer, closing and reopening the exercise editor, and deleting that additional answer.

After fixing this issue we might also consider allowing adding of only one correct answer in case of numeric input type. Or the decision to allow more than one was intentional, I can't recall...? 🤔

Expected behavior

Numeric input type answer should be seamlessly saved when the exercise editor is closed.

User-facing consequences

Impossibility to set up questions with numerical input answer.

Errors and logs

Some errors in the console (see the recording), unsure if related to the issue.

Steps to reproduce the issue

  1. Select Numeric input type of question in the exercise editor.
  2. Add 1 answer and close the editor.
  3. Reopen the exercise and observe the ❗ mark indicating the incomplete question.

Usage Details

  • OS: any
  • Browser: any

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions