LMS Quiz Submission Issue – Attempted Questions Not Tracked (v15)

I’m facing an issue with quiz submissions in the Frappe LMS (v15), specifically related to how attempted questions are tracked on submission.
Problem Description

While attempting a quiz:

  • The answer is entered in the input field

  • The UI correctly validates and shows the answer as “Correct”

  • However, upon clicking Submit, the confirmation modal shows:

Technical Observation

This appears to be a frontend state management issue, where:

  • The answer validation logic is working correctly (UI feedback is shown)

  • But the quiz submission state (answers or responses) is not being updated

Possibly:

  • onChange / handleAnswerChange is not persisting data into the submission object

  • Attempted questions count is derived from an empty or unchanged state

Technical Observation

This appears to be a frontend state management issue, where:

The answer validation logic is working correctly (UI feedback is shown)
But the quiz submission state (answers or responses) is not being updated

Possibly:

onChange / handleAnswerChange is not persisting data into the submission object
Attempted questions count is derived from an empty or unchanged state