Skip to content

Commit 9d0f754

Browse files
committed
fix: bump up z-index of element being dragged
1 parent 06396e6 commit 9d0f754

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/draggable.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class DraggableDirective implements OnInit, OnChanges, OnDestroy {
248248
left: `${rect.left}px`,
249249
width: `${rect.width}px`,
250250
height: `${rect.height}px`,
251-
zIndex: '10',
251+
zIndex: '1000',
252252
cursor: this.dragCursor,
253253
margin: '0'
254254
});

test/draggable.directive.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ describe('draggable directive', () => {
578578
expect(ghostElement.style.left).to.be.ok;
579579
expect(ghostElement.style.width).to.be.ok;
580580
expect(ghostElement.style.height).to.be.ok;
581-
expect(ghostElement.style.zIndex).to.equal('10');
581+
expect(ghostElement.style.zIndex).to.equal('1000');
582582
expect(draggableElement.style.visibility).to.equal('hidden');
583583
expect((ghostElement as HTMLElement).hasAttribute('mwldraggable')).to.be
584584
.true;

0 commit comments

Comments
 (0)