-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: refresher triggers when scrolling up on custom scroll host #25318
Comments
Thanks for the issue. I can reproduce this. This line likely needs to be changed: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/refresher/refresher.tsx#L439. This function calls |
<cdk-virtual-scroll-viewport>
I experience the same problem, any clues when a hot fix can be available? |
We will post on this thread when the issue is resolved. |
Can someone test with this dev build: I've confirmed locally with the reproduction app, but would appreciate additional testing. Thanks! |
I just verified the fix with "@ionic/angular": "6.1.7-dev.11653327570.1759e1d5" and it solves the issue. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
When using the
<ion-refresher-content>
component in combination with Angular's<cdk-virtual-scroll-viewport>
component, the refresher gets triggered when scrolling in the list. I also added theion-content-scroll-host
class to the<cdk-virtual-scroll-viewport>
component to no avail.2022-05-19.12-35-14.mp4
Expected Behavior
When using the
<ion-refresher-content>
component in combination with Angular's<cdk-virtual-scroll-viewport>
component, the refresher should only be triggered when pulling at the start of the list.Steps to Reproduce
Code Reproduction URL
https://github.com/TimGels/ionic-virtual-scroll-refresher-repro
Ionic Info
PS C:\Users\user\projects\ionic-virtual-scroll-refresher-repro> ionic info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package'
Ionic:
Ionic CLI : 6.18.2 (C:\Users\user\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.1.6
@angular-devkit/build-angular : 13.2.6
@angular-devkit/schematics : 13.2.6
@angular/cli : 13.2.6
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.5.1
@capacitor/android : not installed
@capacitor/core : 3.5.1
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.6.0
System:
NodeJS : v16.14.0 (C:\Program Files\nodejs\node.exe)
npm : 8.3.1
OS : Windows 10
Additional Information
I followed the docs on the implementation of the virtual scrolling.
A related issue that I came across #23437
The text was updated successfully, but these errors were encountered: