Skip to content

Commit

Permalink
fix(cursor): change the cursor back to default on IE11
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
Matt Lewis committed Aug 6, 2017
1 parent 81b8d84 commit a0323e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resizable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function getResizeCursor(edges: Edges, cursors: ResizeCursors): string {
} else if (edges.top || edges.bottom) {
return cursors.topOrBottom;
} else {
return null;
return '';
}
}

Expand Down Expand Up @@ -351,7 +351,7 @@ export class Resizable implements OnInit, OnDestroy, AfterViewInit {
cursorPrecision: this.resizeCursorPrecision
});
const resizeCursors: ResizeCursors = Object.assign({}, DEFAULT_RESIZE_CURSORS, this.resizeCursors);
const cursor: string = currentResize ? null : getResizeCursor(resizeEdges, resizeCursors);
const cursor: string = currentResize ? '' : getResizeCursor(resizeEdges, resizeCursors);

this.renderer.setStyle(this.elm.nativeElement, 'cursor', cursor);
this.setElementClass(this.elm, RESIZE_ACTIVE_CLASS, !!currentResize);
Expand Down

0 comments on commit a0323e9

Please sign in to comment.