frontend-app-learning icon indicating copy to clipboard operation
frontend-app-learning copied to clipboard

After resetting I can submit again without selecting a new option and it uses the previous submit value

Open mariajgrimaldi opened this issue 1 year ago • 4 comments

Expected behavior

The "Submit" button should be disabled after clicking reset option.

Actual behavior

After clicking the "Reset" button, questions are reset, but the "Submit" button stays active and clickable. If the user clicks the "Submit" button without selecting any option, it is marked incorrect.

https://github.com/openedx/wg-build-test-release/assets/170630433/7f84c701-2a97-44e4-9486-2e32d13fa298

Steps to reproduce

  1. Navigate to a common problem type component (SCQ, MCQ ) in the course.
  2. Attempt a question and submit an incorrect answer.
  3. Click the "Reset" button to reset the question.
  4. Click the submit button without selecting any option.
  5. Observe the behavior.

Additional information

  1. This issue affects all common problem components.

Original issue: https://github.com/openedx/wg-build-test-release/issues/362

mariajgrimaldi avatar Jun 03 '24 16:06 mariajgrimaldi

This is currently happening in quince as well.

mariajgrimaldi avatar Jun 03 '24 17:06 mariajgrimaldi

FYI @arbrandes @brian-smith-tcril @openedx/2u-infinity, please tag anyone you think can help. Thanks!

mariajgrimaldi avatar Jun 03 '24 17:06 mariajgrimaldi

@mariajgrimaldi I have sent a merge request: https://github.com/openedx/edx-platform/pull/35118 to fix this issue. Please take a look

imasdekar avatar Jul 17 '24 09:07 imasdekar

Hey @imasdekar, thank you so much for the fix! We really appreciate it. I'll look (or find someone who can) as soon as possible.

mariajgrimaldi avatar Aug 23 '24 18:08 mariajgrimaldi

This issue affects edx-platform instead of the MFE, so I'm going to close the issue in the MFE to track it in the BTR repo directly.

mariajgrimaldi avatar Oct 28 '24 13:10 mariajgrimaldi