Skip to content

Commit

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

* fix: handler mousedown for clear event when used animation library
closes #928
  • Loading branch information
javico2609 authored and varnastadeus committed Nov 9, 2018
1 parent f85bef7 commit dfbbcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/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 dfbbcd6

Please sign in to comment.