Skip to content
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

fix(blade): page gets scrolled to top on iOS on bottomsheet open #1862

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

anuraghazra
Copy link
Member

@anuraghazra anuraghazra commented Dec 4, 2023

Fixes #1860

There's a bug in the body-scroll-lock packages which causes iOS mobile to scroll to the top when bottomsheet opens.

willmcpo/body-scroll-lock#237

I've updated the lib with the community fixed version.

And also updated the storybook canvas to NOT use absolute positioning while rendering the stories which causes issues because this is not how most consumers use our components.

Copy link

changeset-bot bot commented Dec 4, 2023

🦋 Changeset detected

Latest commit: 11935b1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Dec 4, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 11935b1:

Sandbox Source
razorpay/blade: basic Configuration

Copy link

bundlemon bot commented Dec 4, 2023

BundleMon

Files updated (1)
Status Path Size Limits
Web Components
build/components/index.production.web.js
330.02KB (-570B -0.17%) -
Unchanged files (13)
Status Path Size Limits
React Native Components
build/components/index.native.js
187.05KB -
Web Tokens
build/tokens/index.production.web.js
42.24KB -
React Native Tokens
build/tokens/index.native.js
38.35KB -
CSS Theme Tokens
build/css/paymentThemeDarkDesktop.css
4.55KB -
CSS Theme Tokens
build/css/paymentThemeDarkMobile.css
4.54KB -
CSS Theme Tokens
build/css/bankingThemeLightDesktop.css
4.53KB -
CSS Theme Tokens
build/css/bankingThemeLightMobile.css
4.52KB -
CSS Theme Tokens
build/css/bankingThemeDarkDesktop.css
4.52KB -
CSS Theme Tokens
build/css/paymentThemeLightDesktop.css
4.52KB -
CSS Theme Tokens
build/css/bankingThemeDarkMobile.css
4.51KB -
CSS Theme Tokens
build/css/paymentThemeLightMobile.css
4.51KB -
Web Utils
build/utils/index.production.web.js
3.38KB -
React Native Utils
build/utils/index.native.js
2.27KB -

Total files change -568B -0.09%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Copy link
Contributor

github-actions bot commented Dec 4, 2023

✅ PR title follows Conventional Commits specification.

snitin315
snitin315 previously approved these changes Dec 4, 2023
Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's add a changeset.

@anuraghazra anuraghazra merged commit 1da6641 into master Dec 4, 2023
@anuraghazra anuraghazra deleted the anu/bottomsheet-scroll-lock-fix branch December 4, 2023 07:41
anuraghazra added a commit that referenced this pull request Apr 9, 2024
* fix(blade): page gets scrolled to top on iOS on bottomsheet open

* Create fluffy-chicken-hunt.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BottomSheet: iOS scroll retention bug
3 participants