Skip to content

Commit

Permalink
Only use mouse down event for closing the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Jul 3, 2018
1 parent 8d66fac commit d06ecc2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/color-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewInit {
this.directiveInstance.stateChanged(true);

if (!this.isIE10) {
document.addEventListener('click', this.listenerMouseDown);
document.addEventListener('mousedown', this.listenerMouseDown);
}

Expand All @@ -565,7 +564,6 @@ export class ColorPickerComponent implements OnInit, OnDestroy, AfterViewInit {
this.directiveInstance.stateChanged(false);

if (!this.isIE10) {
document.removeEventListener('click', this.listenerMouseDown);
document.removeEventListener('mousedown', this.listenerMouseDown);
}

Expand Down

0 comments on commit d06ecc2

Please sign in to comment.