Skip to content

Commit

Permalink
fix: bump up z-index of element being dragged
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Jun 7, 2018
1 parent 06396e6 commit 9d0f754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/draggable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class DraggableDirective implements OnInit, OnChanges, OnDestroy {
left: `${rect.left}px`,
width: `${rect.width}px`,
height: `${rect.height}px`,
zIndex: '10',
zIndex: '1000',
cursor: this.dragCursor,
margin: '0'
});
Expand Down
2 changes: 1 addition & 1 deletion test/draggable.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ describe('draggable directive', () => {
expect(ghostElement.style.left).to.be.ok;
expect(ghostElement.style.width).to.be.ok;
expect(ghostElement.style.height).to.be.ok;
expect(ghostElement.style.zIndex).to.equal('10');
expect(ghostElement.style.zIndex).to.equal('1000');
expect(draggableElement.style.visibility).to.equal('hidden');
expect((ghostElement as HTMLElement).hasAttribute('mwldraggable')).to.be
.true;
Expand Down

0 comments on commit 9d0f754

Please sign in to comment.