You shouldn't set z-index in directive. zIndex = $(this).css('z-index'); $(this).css('z-index', 99999); and $(this).css('z-index', zIndex); It caused a bug, when set drag option {helper:'clone'}. Use jQueryUIDraggable option zIndex