Skip to content

Commit

Permalink
fix: handler mousedown for clear event when used animation library (n…
Browse files Browse the repository at this point in the history
…g-select#931)

* fix: handler mousedown for clear event when used animation library
closes ng-select#928
  • Loading branch information
javico2609 authored and varnastadeus committed Nov 9, 2018
1 parent 8b3e934 commit 2ab22c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ng-select/ng-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class NgSelectComponent implements OnDestroy, OnChanges, AfterViewInit, C
}
$event.stopPropagation();

if (target.className === 'ng-clear-wrapper') {
if (target.className.includes('ng-clear-wrapper')) {
this.handleClearClick();
return;
}
Expand Down

0 comments on commit 2ab22c4

Please sign in to comment.