-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(refresher): force content to be ready before saving the scrollEl #22390
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
Conversation
|
Thanks for the PR. Can you sync your branch with the latest changes in |
| return; | ||
| } | ||
|
|
||
| await contentEl.componentOnReady(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add this here, then we should remove the componentOnReady call in https://github.com/ionic-team/ionic-framework/blob/master/core/src/components/refresher/refresher.tsx#L374 as it is redundant.
|
@liamdebeasi done |
|
Hmm it looks like it's trying to merge in all of the changes as new commits. It might be easier reset your branch to the latest master, make your change, then force push the updates. |
|
oh lol yeah i have seen it^^ did like you said: reset and the force pushed 😊 |
liamdebeasi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
|
Merged. Thank you! |
closes #22256
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build) was run locally and any changes were pushednpm run lint) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #22256
Like wrote in the linked Issue, the Refresher sometimes starts too early / buggy when used in iOS card style modal. I debugged this today and saw, that the ScrollElement's offsetHeight could be zero here:
ionic-framework/core/src/components/refresher/refresher.tsx
Line 399 in c1455a8
This cause the
setupiOSNativeRefresherto not work properly, as MAX_PULL is zero then as well.What is the new behavior?
Does this introduce a breaking change?
Other information