mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-78082 gradereport_grader: Enter should submit the form
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.
This commit is contained in:
parent
00f0613f99
commit
a1cf8f143a
@ -23,7 +23,7 @@
|
||||
"name": "Meaning of life"
|
||||
}
|
||||
}}
|
||||
<button class="btn btn-link btn-icon icon-size-3" data-hider="expand" data-col="{{field}}">
|
||||
<button type="button" class="btn btn-link btn-icon icon-size-3" data-hider="expand" data-col="{{field}}">
|
||||
<i class="icon fa fa-plus m-0" title="Reopen column" aria-hidden="true"></i>
|
||||
<span class="sr-only">{{#str}}reopencolumn, gradereport_grader, {{name}}{{/str}}</span>
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user