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

Drawer is unusable on a standalone installed PWA #505

Open
smhutch opened this issue Nov 6, 2024 · 2 comments
Open

Drawer is unusable on a standalone installed PWA #505

smhutch opened this issue Nov 6, 2024 · 2 comments

Comments

@smhutch
Copy link

smhutch commented Nov 6, 2024

Drawer content is unusable when:

  1. The app has a manifest.json with "display": "standalone",
  2. The user installs the app on iOS
  3. A sheet is rendered below the fold on a page (interestingly it works fine if you are scrolled to the top)

Recording of issue

ScreenRecording_11-06-2024.15-08-49_1.mov

In this recording I:

  1. Have installed the app on iOS
  2. Open the Drawer at the top of the page. I can interact with it as normal and click on the button to show the alert.
  3. Scroll to the bottom, and open the problematic Drawer (same component as above).
  4. First issue is that the body scrolls back to the top (you can see that behind the drawer)
  5. Second issue is that if I interact with the drawer in any way it instantly closes

Minimal repro

  1. App showing the bug
  2. Repo with minimal repro
@smhutch
Copy link
Author

smhutch commented Nov 10, 2024

@emilkowalski what's the purpose of this condition? I found that removing it fixed the issues we have been seeing on a standalone PWA. I assume it has some purpose though.

@hiroingk
Copy link

The same issue is occurring in iOS app WebViews, not just PWAs.
As a workaround, we resolved it by setting the WebView's User Agent to match Safari's UA as shown in the link below:
https://www.whatismybrowser.com/guides/the-latest-user-agent/ios
However, we hope it can be made to work without depending on the UA.

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

No branches or pull requests

2 participants