From 0198de44165b2adebd7df378b1da51e3156bbd91 Mon Sep 17 00:00:00 2001 From: shawn Date: Wed, 22 Aug 2018 18:14:59 -0400 Subject: [PATCH] make moving nested list always on the top avoid being covered by modal box --- jquery.nestable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.nestable.js b/jquery.nestable.js index 7323fb4..8763271 100644 --- a/jquery.nestable.js +++ b/jquery.nestable.js @@ -264,7 +264,8 @@ this.dragEl = $(document.createElement(this.options.listNodeName)).addClass(this.options.listClass + ' ' + this.options.dragClass); this.dragEl.css('width', dragItem.width()); - + this.dragEl.css('z-index', 2147483647); + dragItem.after(this.placeEl); dragItem[0].parentNode.removeChild(dragItem[0]); dragItem.appendTo(this.dragEl);