mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(infinite-scroll): disabled resets loading/busy state (#16107)
fixes #15994
This commit is contained in:
@ -55,6 +55,10 @@ export class InfiniteScroll implements ComponentInterface {
|
||||
|
||||
@Watch('disabled')
|
||||
protected disabledChanged(val: boolean) {
|
||||
if (this.disabled) {
|
||||
this.isLoading = false;
|
||||
this.isBusy = false;
|
||||
}
|
||||
this.enableScrollEvents(!val);
|
||||
}
|
||||
|
||||
@ -197,7 +201,8 @@ export class InfiniteScroll implements ComponentInterface {
|
||||
!this.disabled &&
|
||||
!this.isBusy &&
|
||||
!!this.scrollEl &&
|
||||
!this.isLoading);
|
||||
!this.isLoading
|
||||
);
|
||||
}
|
||||
|
||||
private enableScrollEvents(shouldListen: boolean) {
|
||||
|
Reference in New Issue
Block a user