Closed MovingGifts closed 3 years ago
So, is this a fixable bug from the stripe side?
Hi @MovingGifts, thanks for the bug report. As you mentioned, I was able to reproduce in iOS 9, but not in the later versions. I'm going to add this to our bug tracker and will keep you posted once we fix it.
@atty-stripe Thank you! Will patiently await the fix :)
Closing this as this project has migrated to React Stripe.js. If you believe this is still important, please re-open it there.
This one is a very weird bug and I was able to reproduce it with the react stripe elements example. The bug is related to the keyboard issue with the focus/blur of the iframe I believe, but is a part that was overlooked/not fixed for the PWA edge case.
Our forked repo is the same as the stripe elements repo, but we made it a PWA by adding a mainfest.json and server-worker.json, which is where the issue occurs. Note that we tested this on other devices/browsers and there are NO issues with the keyboard, so the other issues surrounding the keyboard in this repo have been fixed, just not this one!
Running an iPad 9.3.5, Safari 9.3.5, since they match versions on iOS, visit our stripe demo link we set up using the stripe elements examples from our forked repo. For the very first stripe example, start filling out 424242 etc all across until zip, it works fine no problem.
Now add it as a PWA to the homescreen to see the bug:
We tested on an iPhone running 11.4, and there were no issues there with the keyboard in the PWA, so it seems to be narrowed down to the 9.3.5 version (only tested on those two iOS device versions).
I don't know if this can help, but this snippet will determine if it is an iOS PWA (Safari standalone mode):
Maybe stripe v3 js needs to integrate a mechanism to detect this with something like the snippet above and not have the keyboard go all crazy showing and hiding it multiple times while just moving through the fields horizontally. Any idea how we can fix this bug/issue?