Skip to content

Commit

Permalink
fix(panel): keep the panel open when scrollbar is clicked #2091 (#2359)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com>
  • Loading branch information
cchvuth and pavankjadda committed May 23, 2024
1 parent 295b1a0 commit c02a6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng-select/lib/ng-dropdown-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class NgDropdownPanelComponent implements OnInit, OnChanges, OnDestroy {
this._zone.runOutsideAngular(() => {
merge(
fromEvent(this._document, 'touchstart', { capture: true }),
fromEvent(this._document, 'mousedown', { capture: true })
fromEvent(this._document, 'click', { capture: true })
).pipe(takeUntil(this._destroy$))
.subscribe($event => this._checkToClose($event));
});
Expand Down

0 comments on commit c02a6c4

Please sign in to comment.