Skip to content

Commit

Permalink
fix(scrollToEnd): fire when scroll equal to clientHeight. (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad authored and anjmao committed Mar 3, 2018
1 parent 3a996f4 commit c516440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng-select/ng-dropdown-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class NgDropdownPanelComponent implements OnDestroy {
this.paddingElementRef.nativeElement :
this.contentElementRef.nativeElement;

if (scroll.scrollTop + panel.clientHeight > padding.clientHeight) {
if (scroll.scrollTop + panel.clientHeight >= padding.clientHeight) {
this.scrollToEnd.emit();
this._scrollToEndFired = true;
}
Expand Down

0 comments on commit c516440

Please sign in to comment.