mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 05:15:07 +01:00
Problem: Previously, when users pressed the Enter key while interacting with the grader report, instead of submitting the form, a table column was inadvertently expanded or collapsed. This behaviour occurred due to the expand/collapse buttons lacking an explicit 'type' attribute within the form. As a result, these buttons were mistakenly treated as submit buttons. Solution: In this commit, we have addressed the issue by ensuring that the expand/collapse buttons now have the correct 'type' attribute set, explicitly identifying them as non-submit buttons. This adjustment prevents them from interfering with form submission unintentionally. Explanation: By making this fix, we improve the user experience in the grade book, allowing users to navigate and interact with the interface more smoothly. Pressing the Enter key will now trigger the form submission as expected, rather than inadvertently activating expand/collapse actions.