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

don't remove elements from dom so they will lose all events, just move them around, fixes #2231

Closes #2231

Merge request studip/studip!1464
parent dbd18d45
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ class ActionMenu {
let parents = getScrollableParents(this.element, menu_width, menu_height);
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);
$('.action-menu-icon', element).clone().data('action-menu-element', element).prependTo(this.menu);
this.menu
......
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