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

Select list options intermittently invisible when used as a PWA iOS 15+ #381

Closed
ocdtrekkie opened this issue Jan 15, 2022 · 14 comments
Closed
Labels
bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.)

Comments

@ocdtrekkie
Copy link

Alright, so I'm still trying to nail down what could cause this. We now have a kid and can now test this app thoroughly! We have Sandstorm added to homescreen, so this would be in iOS Safari, with BabyBuddy in a Sandstorm iframe.

My wife reported she could not add a feeding or diaper change because the dropdowns would not populate and could not be changed from default/null selections. Thought it was weird and saw some artifacts like the dropdowns persisting after leaving the page. I closed the app and reopened it and things worked fine.

I then returned to my own phone, which had worked fine, doing the same thing for a bit, until I once again closed the app.

My best guess so far is that it happens if you had the app open already on Sandstorm and then return to it without closing it in between. It's very possible this could be caused by something like the Sandstorm grain being closed but the app front end not noticing.

@cdubz
Copy link
Member

cdubz commented Jan 15, 2022

I haven’t taken the time to do any digging on this yet but I don’t think it’s specific to Sandstorm. We haven’t used Baby Buddy for a couple of years now but we do have another custom app I made for calorie tracking that we use daily and it has also had this issue since the iOS 15 upgrade. I’ve been meaning to look in to it for a long time but keep forgetting. Searching for references to this issue and iOS 15 may yield something useful.

@ocdtrekkie
Copy link
Author

Good to know. We definitely both are on iOS 15.

@cdubz
Copy link
Member

cdubz commented Jan 15, 2022

Did a little searching just now but haven’t turned anything particularly relevant —

@ocdtrekkie
Copy link
Author

Intriguing. I wonder if it will "fix itself" in a future iOS update. If you do end up discovering a code fix for your other app, this is I guess an FYI that it'd be appreciated here as well, though we are working around the issue just fine. App works great for tracking what we're tracking so far, and it's wife-approved, which is rarely the case for the self-hosted apps I propose using!

@cdubz
Copy link
Member

cdubz commented Jan 19, 2022

Yeah, of course. I’ve been testing my other app lately in Safari directly (i.e. not a webapp view) and can’t reproduce the issue so far. At some point I’ll try to get a simple POC that I can use to report this… somewhere at Apple. Seems like it’ll be hard to get a truly reproducible example of the big though.

@cdubz
Copy link
Member

cdubz commented Jan 27, 2022

FWIW here is another reference for the exact issue --

I don't think there are any feasible workaround options here so we just need to hope that Apple fixes this 🤷

@ocdtrekkie can you confirm this is the issue you are experiencing? If so I'm going to move this issue to the primary babybuddy repo.

@ocdtrekkie
Copy link
Author

This sounds accurate. I have managed to accidentally change a selection when the select field isn't showing... the claim that it's there but invisible makes sense to me, and explains how that happened.

If it's just a general PWA-on-iOS issue, there's probably nothing to fix on the app side, I'd agree.

@cdubz cdubz changed the title Jan 27, 2022
@cdubz cdubz changed the title Jan 27, 2022
@cdubz cdubz changed the title Jan 27, 2022
@cdubz cdubz transferred this issue from babybuddy/babybuddy-sandstorm Jan 27, 2022
@cdubz cdubz added bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.) labels Jan 27, 2022
@amorphobia
Copy link
Contributor

I encountered this issue, too.

I recognize that the bug is on iOS side, but can we have a workaround, use something like radio toggle buttons instead of dropdowns?

@cdubz
Copy link
Member

cdubz commented Jun 12, 2022

I’m open to ideas here. I don’t know if radio toggles are really the answer but I’d be happy to test a PR if someone wants to try it out. Keep in mind we are stuck on BS4 due to the datetime picker library so we can’t use BS5 components.

@cdubz
Copy link
Member

cdubz commented Jun 28, 2022

In the mean time someone has created a very detailed bug report for this: https://bugs.webkit.org/show_bug.cgi?id=238318

Hopefully that helps move the issue along 🤞

@ocdtrekkie
Copy link
Author

Wow. Someday in my wildest dreams I'll make a bug report that complete.

@cdubz
Copy link
Member

cdubz commented Jul 7, 2022

@ocdtrekkie check out #494! Looks like this approach will help workaround this issue and I like that its not just because of this iOS bug.

@cdubz
Copy link
Member

cdubz commented Dec 16, 2022

This appears to be fixed in iOS 16.2 🎉

@cdubz cdubz closed this as completed Dec 16, 2022
@ocdtrekkie
Copy link
Author

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reports of unexpected problems or errors third party Relies on or blocked by a third party (dependency, vendor, platform, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants