MDL-86015 mod_assign: preserve advanced grading modal dropdown state.

Don't autoclose it when clicking inside the dropdown element. Fixes
change of behaviour during the Bootstrap 5 upgrade.
This commit is contained in:
Paul Holden
2025-08-15 11:04:10 +01:00
parent c479d30b06
commit f42ee02f82
2 changed files with 4 additions and 3 deletions
@@ -390,6 +390,7 @@ class grading_actionmenu implements templatable, renderable {
[
'classes' => 'extrafilters d-flex',
'buttonclasses' => 'btn d-flex border-none align-items-center dropdown-toggle p-0',
'autoclose' => 'outside',
]
);
}
@@ -71,7 +71,7 @@
<input type="hidden" name="action" value="{{action}}">
{{#filters}}
{{#markingworkflow}}
<div class="d-flex flex-wrap m-0 pb-3">
<div class="d-flex flex-wrap gap-2 m-0 pb-3">
<label class="w-100" for="filter-workflow-{{uniqid}}">
{{#str}}markingstate, mod_assign{{/str}}
</label>
@@ -83,7 +83,7 @@
</div>
{{/markingworkflow}}
{{#markingallocation}}
<div class="d-flex flex-wrap m-0 pb-3">
<div class="d-flex flex-wrap gap-2 m-0 pb-3">
<label class="w-100" for="filter-marking-allocation-{{uniqid}}">
{{#str}}marker, mod_assign{{/str}}
</label>
@@ -95,7 +95,7 @@
</div>
{{/markingallocation}}
{{#suspendedparticipants}}
<div class="d-flex flex-wrap m-0 pb-3 pt-2 mx-1 align-items-center">
<div class="d-flex flex-wrap gap-2 m-0 pb-3 pt-2 mx-1 align-items-center">
<input type="hidden" name="suspendedparticipantsfilter" value="0" {{#active}}disabled{{/active}}>
<input type="checkbox" id="filter-suspended-participants-{{uniqid}}" name="suspendedparticipantsfilter" value="1" {{#active}}checked{{/active}}>
<label for="filter-suspended-participants-{{uniqid}}" class='m-0' >{{#str}} includesuspendedparticipants, mod_assign {{/str}}</label>