Reputation: 61
I'm trying to handle an event reaching end of scroll in select component, and, it seems, the event is not even emitted.
But at the same time, similar events like 'open' work fine.
I use Angular 8 in my project.
<ng-select
...
(open)="onOpen()"
(scrollToEnd)="onScrollToEnd($event)">
</ng-select>
onOpen() {
console.log('open');
}
onScrollToEnd(e) {
console.log('scroll to end');
}
What could be the problem?
Upvotes: 2
Views: 1767
Reputation: 61
The problem was in CSS. More precisely in scaling and CSS. 60% scale and the current CSS broke the code. The browser did not understand that the end of the list was reached.
Upvotes: 1