Skip to content
Snippets Groups Projects
Commit bfe439b5 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

preserve form relation when repositioning the action menu, fixes #2172

Closes #2172

Merge request studip/studip!1401
parent 7c023a7d
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,13 @@ class ActionMenu {
// Reposition the menu?
if (position) {
const form = this.element.closest('form');
if (form) {
const id = form.uniqueId().attr('id');
$('.action-menu-item input[type="image"]:not([form])', this.element).attr('form', id);
$('.action-menu-item button:not([form])', this.element).attr('form', id);
}
let parents = getScrollableParents(this.element, menu_width, menu_height);
if (parents.length > 0) {
this.menu = $('<div class="action-menu-wrapper">').append(this.content.remove());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment