mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scroll): correctly resolve promise
This commit is contained in:
@@ -391,9 +391,8 @@ export class ScrollView {
|
||||
if (done === undefined) {
|
||||
// only create a promise if a done callback wasn't provided
|
||||
// done can be a null, which avoids any functions
|
||||
promise = new Promise((res, rej) => {
|
||||
done = res;
|
||||
done = rej;
|
||||
promise = new Promise(resolve => {
|
||||
done = resolve;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user