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

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

Closes #2172

Merge request !1401
parent 93513c80
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,13 @@ class ActionMenu { ...@@ -124,6 +124,13 @@ class ActionMenu {
// Reposition the menu? // Reposition the menu?
if (position) { 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); let parents = getScrollableParents(this.element, menu_width, menu_height);
if (parents.length > 0) { if (parents.length > 0) {
this.menu = $('<div class="action-menu-wrapper">').append(this.content.remove()); 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