Skip to content

Conversation

@drgrice1
Copy link
Member

The code looks for the enter_key_submit submit button in the DOM, and if that is found then it clicks it. However, it doesn't return after that, but continues on the the later code in the method none of which should occur if that button is found. The later code executes the "gateway quiz" fallback which clicks the submit button with the name "previewAnswers". However, there is also a button with that name in homework.

The behavior is different in different browsers with this. In Firefox the first button clicked seems to be what is in effect. However, in Google Chrome the second button clicked is in effect. So the desired behavior occurs in Firefox, but not in Google Chrome.

What needs to happen is that if the enter_key_submit input is found, then that should be clicked, and the method should return. There is no need for the fallback click of the submit button with the id previewAnswers_id otherwise. Instead just click the submit button with the name previewAnswers which is present in both homework sets and tests.

I certainly thing that this should be a hotfix.

The code looks for the `enter_key_submit` submit button in the DOM, and
if that is found then it clicks it.  However, it doesn't return after
that, but continues on the the later code in the method none of which
should occur if that button is found.  The later code executes the
"gateway quiz" fallback which clicks the submit button with the name
"previewAnswers".  However, there is also a button with that name in
homework.

The behavior is different in different browsers with this.  In Firefox
the first button clicked seems to be what is in effect.  However, in
Google Chrome the second button clicked is in effect.  So the desired
behavior occurs in Firefox, but not in Google Chrome.

What needs to happen is that if the `enter_key_submit` input is found,
then that should be clicked, and the method should return.  There is no
need for the fallback click of the submit button with the id
`previewAnswers_id` otherwise.  Instead just click the submit button
with the name `previewAnswers` which is present in both homework sets
and tests.

I certainly thing that this should be a hotfix.
@drgrice1
Copy link
Member Author

drgrice1 commented Jan 24, 2026

By the way, this is to address the issue posted in the forums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant