Skip to content
Snippets Groups Projects
Commit 573b6658 authored by Jan-Hendrik Willms's avatar 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 29211afb
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ class ActionMenu { ...@@ -131,7 +131,7 @@ class ActionMenu {
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);
$('.action-menu-icon', element).clone().data('action-menu-element', element).prependTo(this.menu); $('.action-menu-icon', element).clone().data('action-menu-element', element).prependTo(this.menu);
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